]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/nc-cui.c
ncurses: Fix bad strncmp
[petitboot] / ui / ncurses / nc-cui.c
index 372da1e7a13e154a3ba460e31a2691b8932fc746..20a90483cd07accc318546d9fc26aab48c9f72dc 100644 (file)
@@ -964,8 +964,8 @@ fallback:
         * If this option was faked above move the context under
         * the item so it is cleaned up later in cui_plugins_remove().
         */
         * If this option was faked above move the context under
         * the item so it is cleaned up later in cui_plugins_remove().
         */
-       if (strncmp(cod->opt->id, "dummy", strlen("dummy") == 0 &&
-                               cod->dev->type == DEVICE_TYPE_UNKNOWN)) {
+       if (strcmp(cod->opt->id, "dummy") == 0 &&
+                       cod->dev->type == DEVICE_TYPE_UNKNOWN) {
                talloc_steal(item, cod->dev);
                talloc_steal(item, cod->opt);
        }
                talloc_steal(item, cod->dev);
                talloc_steal(item, cod->opt);
        }