projects
/
oweals
/
fstools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd3d499
)
libfstools: fix matching fstype
author
Daniel Golle
<daniel@makrotopia.org>
Sat, 21 Jun 2014 23:34:28 +0000
(
01:34
+0200)
committer
Daniel Golle
<daniel@makrotopia.org>
Sat, 21 Jun 2014 23:34:28 +0000
(
01:34
+0200)
the previous commit accidentally also matched against the trailing
null byte of a constant string but should not.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libfstools/find.c
patch
|
blob
|
history
diff --git
a/libfstools/find.c
b/libfstools/find.c
index d9df173025673a6c04484491d2659e0c3b817bb8..b50b63346142fb1143b76102d8398306ee23ecce 100644
(file)
--- 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;