fixing buffer overflow - ploot - simple plotting tools
 (HTM) git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ebff9e927a35af076a55e62732001c860c883244
 (DIR) parent 3b39b0db61c4795ea3c0af49b0c2151585e502b6
 (HTM) Author: Josuah Demangeon <mail@josuah.net>
       Date:   Sat,  3 Feb 2018 23:43:37 +0100
       
       fixing buffer overflow
       
       Diffstat:
         M ploot.c                             |       2 +-
         M ploot.core                          |       0 
       
       2 files changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/ploot.c b/ploot.c
       @@ -141,7 +141,7 @@ ring_add(double *ring, size_t len, size_t pos, double val)
        {
                *ring = val;
        
       -        return (pos >= len) ? pos + 1 : 0;
       +        return (pos < len) ? pos + 1 : 0;
        }
        
        /*
 (DIR) diff --git a/ploot.core b/ploot.core
       Binary files differ.