X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/82cd54f3ea9325bbd7958526f261ef6121896270..495ea3c8471821855f1fc06ef5f66ffa05fabe62:/package/mtd/src/jffs2.c diff --git a/package/mtd/src/jffs2.c b/package/mtd/src/jffs2.c index 5654f93e0..c683b51d1 100644 --- a/package/mtd/src/jffs2.c +++ b/package/mtd/src/jffs2.c @@ -247,7 +247,7 @@ void mtd_parse_jffs2data(const char *buf, const char *dir) struct jffs2_raw_dirent *de = (struct jffs2_raw_dirent *) node; /* is this the right directory name and is it a subdirectory of / */ - if (*dir && (de->pino == 1) && !strncmp(de->name, dir, de->nsize)) + if (*dir && (de->pino == 1) && !strncmp((char *) de->name, dir, de->nsize)) target_ino = de->ino; /* store the last inode and version numbers for adding extra files */