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 | c237543529fb306b46b5fe83ee700d8915cc2e95 (patch) | |
tree | d70b323f364183b9c4742599838bb4e4562dabfe /package/mtd | |
parent | 2298b5631dd82dfca93e17e47cf33f9ae61b292f (diff) | |
download | master-187ad058-c237543529fb306b46b5fe83ee700d8915cc2e95.tar.gz master-187ad058-c237543529fb306b46b5fe83ee700d8915cc2e95.tar.bz2 master-187ad058-c237543529fb306b46b5fe83ee700d8915cc2e95.zip |
fix jffs2 eof marker search in mtd (patch by Daniel Dickinson)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17522 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 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) |