projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[package] mac80211: make b43-fwsquash.py work with python 3.x
[openwrt.git]
/
tools
/
wrt350nv2-builder
/
src
/
wrt350nv2-builder.c
diff --git
a/tools/wrt350nv2-builder/src/wrt350nv2-builder.c
b/tools/wrt350nv2-builder/src/wrt350nv2-builder.c
index
784f921
..
3693286
100644
(file)
--- 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;
int lineno;
int count;
- char string1[
64
];
- char string2[
64
];
+ char string1[
256
];
+ char string2[
256
];
int value;
mtd_info *mtd;
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 ':':
// split line if starting with a colon
switch (line[0]) {
case ':':
- count = sscanf(line, ":%
63s %i %63
s", string1, &value, string2);
+ count = sscanf(line, ":%
255s %i %255
s", string1, &value, string2);
if (count != 3) {
printf("line %i does not meet defined format (:<mtdname> <mtdsize> <file>)\n", lineno);
} else {
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
}
break;
case '#': // integer values
- count = sscanf(line, "#%
63
s %i", string1, &value);
+ count = sscanf(line, "#%
255
s %i", string1, &value);
if (count != 2) {
printf("line %i does not meet defined format (:<variable name> <integer>\n", lineno);
} else {
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
}
break;
case '$': // strings
- count = sscanf(line, "$%
63s %63
s", string1, string2);
+ count = sscanf(line, "$%
255s %255
s", string1, string2);
if (count != 2) {
printf("line %i does not meet defined format (:<mtdname> <mtdsize> <file>)\n", lineno);
} else {
if (count != 2) {
printf("line %i does not meet defined format (:<mtdname> <mtdsize> <file>)\n", lineno);
} else {
This page took
0.024188 seconds
and
4
git commands to generate.