From: oetiker Date: Sat, 16 Dec 2006 16:02:43 +0000 (+0000) Subject: it is sufficient to set the last item to 0 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c488c335248a6a312ca4e299918e9201529e9115;p=rrdtool-all.git it is sufficient to set the last item to 0 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@932 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index ad6ef4ad..4abacc7c 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -3519,7 +3519,7 @@ rrd_graph_options(int argc, char *argv[],image_desc_t *im) case 'W': strncpy(im->watermark,optarg,100); - im->watermark[99]='\0'; + im->watermark[100]='\0'; break; case '?':