projects
/
project
/
fstools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubi: fix false positive in volume_find
[project/fstools.git]
/
libfstools
/
ubi.c
diff --git
a/libfstools/ubi.c
b/libfstools/ubi.c
index
42f76ca
..
3051720
100644
(file)
--- a/
libfstools/ubi.c
+++ b/
libfstools/ubi.c
@@
-138,7
+138,7
@@
static int ubi_volume_match(struct volume *v, char *name, int ubi_num, int volid
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));