projects
/
project
/
fstools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
match full mtd partition names
[project/fstools.git]
/
libfstools
/
mtd.c
diff --git
a/libfstools/mtd.c
b/libfstools/mtd.c
index
00bb2d6
..
b9daabc
100644
(file)
--- a/
libfstools/mtd.c
+++ b/
libfstools/mtd.c
@@
-130,7
+130,9
@@
static char* mtd_find_index(char *name)
return index;
while (!index && fgets(line, sizeof(line), fp)) {
- if (strstr(line, name)) {
+ char *ret;
+
+ if ((ret = strstr(line, name)) && (ret[strlen(name)] == '"')) {
char *eol = strstr(line, ":");
if (!eol)