Code

oops 99 is the last item
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 16 Dec 2006 16:04:05 +0000 (16:04 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sat, 16 Dec 2006 16:04:05 +0000 (16:04 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@933 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index 4abacc7c622ea9794f143cfc99e99f851e0e5c71..ad6ef4ad82b89963c53666e044c93793de0403f1 100644 (file)
@@ -3519,7 +3519,7 @@ rrd_graph_options(int argc, char *argv[],image_desc_t *im)
 
         case 'W':
             strncpy(im->watermark,optarg,100);
-            im->watermark[100]='\0';
+            im->watermark[99]='\0';
             break;
 
        case '?':