Changeset 17522


Ignore:
Timestamp:
2009-09-06T01:38:51+02:00 (8 years ago)
Author:
nbd
Message:

fix jffs2 eof marker search in mtd (patch by Daniel Dickinson)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mtd/src/mtd.c

    r15245 r17522  
    286286 
    287287                if (jffs2file) { 
    288                         if (memcmp(buf, JFFS2_EOF, sizeof(JFFS2_EOF)) == 0) { 
     288                        if (memcmp(buf, JFFS2_EOF, sizeof(JFFS2_EOF) - 1) == 0) { 
    289289                                if (!quiet) 
    290290                                        fprintf(stderr, "\b\b\b   "); 
Note: See TracChangeset for help on using the changeset viewer.