X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=569e65290bd7e98cef518b078a16f76547ecb564;hp=a6eb8843d514e0a99f9a53bb79ea951e8ec6f36a;hb=a5f80e0a9a40732b9d7606ad369b288ce04cec29;hpb=ef13876e9feacc576724b7eba089d0483e84ceee diff --git a/discover/device-handler.c b/discover/device-handler.c index a6eb884..569e652 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -1560,8 +1560,7 @@ void device_handler_add_plugin_option(struct device_handler *handler, tmp = handler->plugins[i]; /* If both id and version match, ignore */ if (strncmp(opt->id, tmp->id, strlen(opt->id)) == 0 && - strncmp(opt->version, tmp->version, - strlen(opt->version) == 0)) { + strcmp(opt->version, tmp->version) == 0) { pb_log("discover: Plugin '%s' already exists, ignoring\n", opt->id); return;