Fix:core: OSD buttons sometimes don't get loaded|
authorsteven_s <steven_s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 31 Oct 2008 02:43:41 +0000 (02:43 +0000)
committersteven_s <steven_s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 31 Oct 2008 02:43:41 +0000 (02:43 +0000)
Calling strlen() on the string we are actually comparing

git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1621 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/plugin.c

index 8152ed4..84d1aa1 100644 (file)
@@ -329,7 +329,7 @@ plugin_get_type(enum plugin_type type, const char *type_name, const char *name)
                        mod_name++;
                else
                        mod_name=pl->name;
-               if (!g_ascii_strncasecmp(mod_name, filename, strlen(filename)) || !g_ascii_strncasecmp(mod_name, corename, strlen(filename))) {
+               if (!g_ascii_strncasecmp(mod_name, filename, strlen(filename)) || !g_ascii_strncasecmp(mod_name, corename, strlen(corename))) {
                        dbg(1, "Loading module \"%s\"\n",pl->name) ;
                        if (plugin_get_active(pl)) 
                                if (!plugin_load(pl))