summaryrefslogtreecommitdiffstats
path: root/tools/wrt350nv2-builder
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-12-12 01:01:42 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-12-12 01:01:42 +0000
commit67c938cebaad6850ceb593305543df8c331e0ca8 (patch)
treed0edd279be7f5bd603d673a19f9d182532ab9d5a /tools/wrt350nv2-builder
parent6c4258444ee71b48c8d4de5ee78f4e11996f85be (diff)
wrt350nv2-builder: fix a small off-by-one error (thx, mb)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18764 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/wrt350nv2-builder')
-rw-r--r--tools/wrt350nv2-builder/src/wrt350nv2-builder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/wrt350nv2-builder/src/wrt350nv2-builder.c b/tools/wrt350nv2-builder/src/wrt350nv2-builder.c
index f0aa16690..784f92154 100644
--- a/tools/wrt350nv2-builder/src/wrt350nv2-builder.c
+++ b/tools/wrt350nv2-builder/src/wrt350nv2-builder.c
@@ -257,7 +257,7 @@ int parse_par_file(FILE *f_par) {
// split line if starting with a colon
switch (line[0]) {
case ':':
- count = sscanf(line, ":%64s %i %64s", string1, &value, string2);
+ count = sscanf(line, ":%63s %i %63s", string1, &value, string2);
if (count != 3) {
printf("line %i does not meet defined format (:<mtdname> <mtdsize> <file>)\n", lineno);
} else {
@@ -316,7 +316,7 @@ int parse_par_file(FILE *f_par) {
}
break;
case '#': // integer values
- count = sscanf(line, "#%64s %i", string1, &value);
+ count = sscanf(line, "#%63s %i", string1, &value);
if (count != 2) {
printf("line %i does not meet defined format (:<variable name> <integer>\n", lineno);
} else {
@@ -332,7 +332,7 @@ int parse_par_file(FILE *f_par) {
}
break;
case '$': // strings
- count = sscanf(line, "$%64s %64s", string1, string2);
+ count = sscanf(line, "$%63s %63s", string1, string2);
if (count != 2) {
printf("line %i does not meet defined format (:<mtdname> <mtdsize> <file>)\n", lineno);
} else {