summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92dd52d)
raw | patch | inline | side by side (parent: 92dd52d)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 11 Jun 2005 05:27:08 +0000 (05:27 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 11 Jun 2005 05:27:08 +0000 (05:27 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@624 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_create.c | patch | blob | history |
diff --git a/src/rrd_create.c b/src/rrd_create.c
index 3e9c68c79f286e788e61542036254ae13b29e22d..7a08b9c5492ed75eaf8f39c276cc1dae403e500b 100644 (file)
--- a/src/rrd_create.c
+++ b/src/rrd_create.c
long i;
int offset;
char *token;
- unsigned short dummychar1,dummychar2;
+ char dummychar1[2], dummychar2[2];
unsigned short token_idx, error_flag, period=0;
unsigned long hashed_name;
switch (sscanf(&argv[i][3],
DS_NAM_FMT "%1[:]" DST_FMT "%1[:]%n",
rrd.ds_def[rrd.stat_head->ds_cnt].ds_nam,
- &dummychar1,
+ dummychar1,
rrd.ds_def[rrd.stat_head->ds_cnt].dst,
- &dummychar2,
+ dummychar2,
&offset)) {
case 0:
case 1: rrd_set_error("Invalid DS name"); break;