X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fext2.c;h=14cbb3c913254320e2460f8560557aeddea8bcd3;hp=0021a0657b35e7710f421cea57fcb4fab1dc0776;hb=3e70b34eed5a48640e20fbf6dcba774aaace1f3c;hpb=6a14f1c2502f58ff7bed8cb451f95a83f5ee920a diff --git a/daemon/ext2.c b/daemon/ext2.c index 0021a06..14cbb3c 100644 --- 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 {