summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d35bac)
raw | patch | inline | side by side (parent: 7d35bac)
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) |
program/src/rrd_create.c | patch | blob | history |
index 3e9c68c79f286e788e61542036254ae13b29e22d..7a08b9c5492ed75eaf8f39c276cc1dae403e500b 100644 (file)
--- a/program/src/rrd_create.c
+++ b/program/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;