]> granicus.if.org Git - sysstat/commitdiff
SVG: Fix truncated SVG code
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 18 Mar 2016 13:21:56 +0000 (14:21 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 18 Mar 2016 13:21:56 +0000 (14:21 +0100)
SVG graph definition may be truncated when the array which contains
SVG code needs to be resized. Fix this.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
svg_stats.c

index 42b546905c4351d63825c742e64fe656407cc1c5..001e6a0a202efc107cef5130efa583da096520fe 100644 (file)
@@ -285,6 +285,7 @@ void lnappend(unsigned long timetag, double value, char **out, int *outsize, int
                SREALLOC(out_p, char, *outsize + CHUNKSIZE);
                *out = out_p;
                *outsize += CHUNKSIZE;
+               len += CHUNKSIZE;
        }
        strncat(out_p, point, len);
 }