From 53ab6c5c134c95c71bcb17dfd0b02926f8a29f6e Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 16 Dec 2006 16:02:43 +0000 Subject: [PATCH] it is sufficient to set the last item to 0 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@932 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index ad6ef4a..4abacc7 100644 --- a/src/rrd_graph.c +++ b/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 '?': -- 2.30.2