X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fgenerator.ml;h=4fba15fd2a0eba26f1bced9f899034d9b1c35f7e;hp=3c1ff2b5aeca6843d253fb57fc0d1c9a810d4e29;hb=c9d94984588d166bcdc077a7972a1b454678ba10;hpb=0c20bd8ea7092b93074ff08cae70e4cf6a06e7c5 diff --git a/src/generator.ml b/src/generator.ml index 3c1ff2b..4fba15f 100644 --- a/src/generator.ml +++ b/src/generator.ml @@ -6772,7 +6772,7 @@ generator (const char *text, int state) while ((name = commands[index]) != NULL) { index++; - if (strncasecmp (name, text, len) == 0) + if (STRCASEEQLEN (name, text, len)) return strdup (name); }