change strncasecmp() == 0 to STRCASEEQLEN()
[libguestfs.git] / src / generator.ml
index 3c1ff2b..4fba15f 100644 (file)
@@ -6772,7 +6772,7 @@ generator (const char *text, int state)
 
   while ((name = commands[index]) != NULL) {
     index++;
 
   while ((name = commands[index]) != NULL) {
     index++;
-    if (strncasecmp (name, text, len) == 0)
+    if (STRCASEEQLEN (name, text, len))
       return strdup (name);
   }
 
       return strdup (name);
   }