summaryrefslogtreecommitdiff
path: root/tools/wrt350nv2-builder
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-12-16 13:47:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-12-16 13:47:47 +0000
commit79cdfd54568a4ef1ef67ead1bf5cd70bbd168c1e (patch)
tree4db0a9565e429db9aae6be8dd6313a7b5ee7f866 /tools/wrt350nv2-builder
parent2ba1dc7aa7cf8743965b2167a65624756766e10a (diff)
downloadmtk-20170518-79cdfd54568a4ef1ef67ead1bf5cd70bbd168c1e.zip
mtk-20170518-79cdfd54568a4ef1ef67ead1bf5cd70bbd168c1e.tar.gz
mtk-20170518-79cdfd54568a4ef1ef67ead1bf5cd70bbd168c1e.tar.bz2
wrt350nv2-builder: increase path limit from 64 bytes to 256 bytes, as 64 bytes may not be enough. suggested by maddes
SVN-Revision: 18794
Diffstat (limited to 'tools/wrt350nv2-builder')
-rw-r--r--tools/wrt350nv2-builder/src/wrt350nv2-builder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/wrt350nv2-builder/src/wrt350nv2-builder.c b/tools/wrt350nv2-builder/src/wrt350nv2-builder.c
index 784f921..3693286 100644
--- a/tools/wrt350nv2-builder/src/wrt350nv2-builder.c
+++ b/tools/wrt350nv2-builder/src/wrt350nv2-builder.c
@@ -187,8 +187,8 @@ int parse_par_file(FILE *f_par) {
int lineno;
int count;
- char string1[64];
- char string2[64];
+ char string1[256];
+ char string2[256];
int value;
mtd_info *mtd;
@@ -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, ":%63s %i %63s", string1, &value, string2);
+ count = sscanf(line, ":%255s %i %255s", 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, "#%63s %i", string1, &value);
+ count = sscanf(line, "#%255s %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, "$%63s %63s", string1, string2);
+ count = sscanf(line, "$%255s %255s", string1, string2);
if (count != 2) {
printf("line %i does not meet defined format (:<mtdname> <mtdsize> <file>)\n", lineno);
} else {