summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f809e35)
An off-by-one made the string compare check only the string
length and not the terminating \0 which lead to rootfs being
found as rootfs_data.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
volname = read_string_from_file(voldir, "name");
volname = read_string_from_file(voldir, "name");
- if (strncmp(name, volname, strlen(volname)))
+ if (strncmp(name, volname, strlen(volname) + 1))
return -1;
p = calloc(1, sizeof(struct ubi_priv));
return -1;
p = calloc(1, sizeof(struct ubi_priv));