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 | 9ca3a640efee6524b8bef7729ea9980ccb77177c (patch) | |
tree | 18758c12046a668b09803a4382eb3b3e2e141045 /navit/plugin.c | |
parent | 2c67a5af56423734dfa10d5e0bc8b34c15104ee3 (diff) | |
download | navit-9ca3a640efee6524b8bef7729ea9980ccb77177c.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 8152ed43a..84d1aa1df 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)) |