Commits

Anonymous committed f9485fe Merge

merge from open-source master

Change-Id: I5e11c6a20846bd8bf589c4a5a5ace53984150e84

Comments (0)

Files changed (1)

yaffs2/utils/mkyaffs2image.c

         
         if((len >= 4) && (!strcmp(dir + len - 4, "data"))) {
             source_path_len = len - 4;
-        } else if((len >= 7) && (!strcmp(dir + len - 6, "system"))) {
+        } else if((len >= 6) && (!strcmp(dir + len - 6, "system"))) {
             source_path_len = len - 6;
         } else {            
             fprintf(stderr,"Fixstats (-f) option requested but filesystem is not data or android!\n");