projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ab6262
)
fix jffs2 eof marker search in mtd (patch by Daniel Dickinson)
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 5 Sep 2009 23:38:51 +0000
(23:38 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 5 Sep 2009 23:38:51 +0000
(23:38 +0000)
SVN-Revision: 17522
package/mtd/src/mtd.c
patch
|
blob
|
history
diff --git
a/package/mtd/src/mtd.c
b/package/mtd/src/mtd.c
index a19f718062aa04c26125e825cdbaa0328733d9f5..be4c1be7fbe61447806ee7c951937141881bf150 100644
(file)
--- 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)