Auto-Merge pull request #2566 from octo/pr/2556
authorcollectd bot <32910397+collectd-bot@users.noreply.github.com>
Tue, 21 Nov 2017 16:08:21 +0000 (17:08 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Nov 2017 16:08:21 +0000 (17:08 +0100)
Automatically merged due to "Automerge" label

src/rrdtool.c

index 5f42561..558b800 100644 (file)
@@ -803,7 +803,7 @@ static int rrd_write(const data_set_t *ds, const value_list_t *vl,
   if (value_list_to_filename(filename, sizeof(filename), vl) != 0)
     return -1;
 
-  char values[32 * ds->ds_num];
+  char values[32 * (ds->ds_num + 1)];
   if (value_list_to_string(values, sizeof(values), ds, vl) != 0)
     return -1;