From: Felix Fietkau Date: Sat, 5 Sep 2009 23:38:51 +0000 (+0000) Subject: fix jffs2 eof marker search in mtd (patch by Daniel Dickinson) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=40e46b98307c88dd5b20aa0ba2bd51935fceaa48;p=librecmc%2Flibrecmc.git fix jffs2 eof marker search in mtd (patch by Daniel Dickinson) SVN-Revision: 17522 --- diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c index a19f718062..be4c1be7fb 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)