summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6801c3f)
raw | patch | inline | side by side (parent: 6801c3f)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 29 Jan 2007 16:47:28 +0000 (16:47 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 29 Jan 2007 16:47:28 +0000 (16:47 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@979 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_tool.c | patch | blob | history |
diff --git a/src/rrd_tool.c b/src/rrd_tool.c
index 6abcaf2a610b7cf48262e963df91178daa5210a7..b493cba78e352d305f5bba277cac1aa39ed3e058 100644 (file)
--- a/src/rrd_tool.c
+++ b/src/rrd_tool.c
for (j = 0; j < col_cnt; j++) {
rrd_value_t newval = DNAN;
if (enumds == 1)
- snprintf(vtag,15,"%s%lu", COL_DATA_TAG, j);
+ snprintf(vtag,sizeof(vtag),"%s%lu", COL_DATA_TAG, j);
else
- snprintf(vtag,15,"%s",COL_DATA_TAG);
+ snprintf(vtag,sizeof(vtag),"%s",COL_DATA_TAG);
newval = *ptr;
if(isnan(newval)){