mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 22:59:40 +02:00
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
This commit is contained in:
parent
e6c017f510
commit
e04d6b1f56
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user