diff options
author | steven_s <steven_s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-10-31 02:43:41 +0000 |
---|---|---|
committer | steven_s <steven_s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-10-31 02:43:41 +0000 |
commit | 207a41421cb6336efce8bc48f0fe92d2d8744a9b (patch) | |
tree | 18758c12046a668b09803a4382eb3b3e2e141045 /navit/plugin.c | |
parent | d1071b2f1849bc9a3e0611773416f3374644bec3 (diff) | |
download | navit-svn-207a41421cb6336efce8bc48f0fe92d2d8744a9b.tar.gz |
Fix:core: OSD buttons sometimes don't get loaded|
Calling strlen() on the string we are actually comparing
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1621 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/plugin.c')
-rw-r--r-- | navit/plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/plugin.c b/navit/plugin.c index 8152ed43..84d1aa1d 100644 --- a/navit/plugin.c +++ b/navit/plugin.c @@ -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)) |