diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-09-05 23:38:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-09-05 23:38:51 +0000 |
commit | 40e46b98307c88dd5b20aa0ba2bd51935fceaa48 (patch) | |
tree | f53b405bd8d0efd68065270d26e0d5a4a46773ed /package/mtd | |
parent | 6ab62627b88f49202127cda66bd65bee0aa3bfbd (diff) | |
download | mtk-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/mtd')
-rw-r--r-- | package/mtd/src/mtd.c | 2 |
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) |