diff options
Diffstat (limited to 'tools/mtd-utils/patches/100-sscanf_fix.patch')
| -rw-r--r-- | tools/mtd-utils/patches/100-sscanf_fix.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/mtd-utils/patches/100-sscanf_fix.patch b/tools/mtd-utils/patches/100-sscanf_fix.patch new file mode 100644 index 00000000000..ae6f86722b9 --- /dev/null +++ b/tools/mtd-utils/patches/100-sscanf_fix.patch @@ -0,0 +1,11 @@ +--- a/jffsX-utils/mkfs.jffs2.c ++++ b/jffsX-utils/mkfs.jffs2.c +@@ -427,7 +427,7 @@ static int interpret_table_entry(struct + + if (sscanf (line, "%" SCANF_PREFIX "s %c %lo %lu %lu %lu %lu %lu %lu %lu", + SCANF_STRING(name), &type, &mode, &uid, &gid, &major, &minor, +- &start, &increment, &count) < 0) ++ &start, &increment, &count) < 10) + { + return 1; + } |
