Commits

Kenny  committed 54194df

The check length of system image path is incorrect

Change-Id: I48042c0acb642e417105986010915ec0a78437b9

  • Participants
  • Parent commits b176f8c

Comments (0)

Files changed (1)

File yaffs2/utils/mkyaffs2image.c

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