summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-09-05 23:38:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-09-05 23:38:51 +0000
commit40e46b98307c88dd5b20aa0ba2bd51935fceaa48 (patch)
treef53b405bd8d0efd68065270d26e0d5a4a46773ed /package
parent6ab62627b88f49202127cda66bd65bee0aa3bfbd (diff)
downloadmtk-20170518-40e46b98307c88dd5b20aa0ba2bd51935fceaa48.zip
mtk-20170518-40e46b98307c88dd5b20aa0ba2bd51935fceaa48.tar.gz
mtk-20170518-40e46b98307c88dd5b20aa0ba2bd51935fceaa48.tar.bz2
fix jffs2 eof marker search in mtd (patch by Daniel Dickinson)
SVN-Revision: 17522
Diffstat (limited to 'package')
-rw-r--r--package/mtd/src/mtd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c
index a19f718..be4c1be 100644
--- a/package/mtd/src/mtd.c
+++ b/package/mtd/src/mtd.c
@@ -285,7 +285,7 @@ mtd_write(int imagefd, const char *mtd)
break;
if (jffs2file) {
- if (memcmp(buf, JFFS2_EOF, sizeof(JFFS2_EOF)) == 0) {
+ if (memcmp(buf, JFFS2_EOF, sizeof(JFFS2_EOF) - 1) == 0) {
if (!quiet)
fprintf(stderr, "\b\b\b ");
if (quiet < 2)