git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
change strncmp() == 0 to STREQLEN()
[libguestfs.git]
/
daemon
/
ext2.c
diff --git
a/daemon/ext2.c
b/daemon/ext2.c
index
0021a06
..
14cbb3c
100644
(file)
--- a/
daemon/ext2.c
+++ b/
daemon/ext2.c
@@
-48,7
+48,7
@@
do_tune2fs_l (const char *device)
p = out;
/* Discard the first line if it contains "tune2fs ...". */
- if (
strncmp (p, "tune2fs ", 8) == 0
) {
+ if (
STREQLEN (p, "tune2fs ", 8)
) {
p = strchr (p, '\n');
if (p) p++;
else {