X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffstools.git;a=blobdiff_plain;f=libfstools%2Ffind.c;h=b50b63346142fb1143b76102d8398306ee23ecce;hp=d9df173025673a6c04484491d2659e0c3b817bb8;hb=e0430f5c62f367e5a8e02755412977b02c3fc45e;hpb=cd3d4999a622af4830e4da974f4baafc085bad4d diff --git a/libfstools/find.c b/libfstools/find.c index d9df173..b50b633 100644 --- a/libfstools/find.c +++ b/libfstools/find.c @@ -97,8 +97,8 @@ find_mount_point(char *block, int mtd_only) t++; if (mtd_only && - strncmp(t, "jffs2", 6) && - strncmp(t, "ubifs", 6)) { + strncmp(t, "jffs2", 5) && + strncmp(t, "ubifs", 5)) { fclose(fp); fprintf(stderr, "block is mounted with wrong fs\n"); return NULL;