aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-12-12 01:01:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-12-12 01:01:42 +0000
commit2820f3cbd3a9d5c08e02e251fe8c5a7a77fd7ab8 (patch)
treea426f21f7565d463cfea71b79d6bf26aa997773a /tools
parent62d2ed26574fa3dedd74356101559123bb31e0bf (diff)
downloadupstream-2820f3cbd3a9d5c08e02e251fe8c5a7a77fd7ab8.tar.gz
upstream-2820f3cbd3a9d5c08e02e251fe8c5a7a77fd7ab8.tar.bz2
upstream-2820f3cbd3a9d5c08e02e251fe8c5a7a77fd7ab8.zip
wrt350nv2-builder: fix a small off-by-one error (thx, mb)
SVN-Revision: 18764
Diffstat (limited to 'tools')
-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 f0aa166909..784f921547 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 {