change strncmp() == 0 to STREQLEN()
[libguestfs.git] / daemon / ext2.c
index 0021a06..14cbb3c 100644 (file)
@@ -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 {