fix jffs2 eof marker search in mtd (patch by Daniel Dickinson)
SVN-Revision: 17522
This commit is contained in:
parent
6ab62627b8
commit
40e46b9830
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue