From: Sean E. <sea...@us...> - 2003-10-16 02:52:05
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1:/tmp/cvs-serv15974/src Modified Files: plugin.c Log Message: This fixes a bug that was causing notify.so to load statenotify.so. Index: plugin.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/plugin.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -p -r1.33 -r1.34 --- plugin.c 29 Sep 2003 22:46:15 -0000 1.33 +++ plugin.c 16 Oct 2003 02:51:44 -0000 1.34 @@ -1022,13 +1022,13 @@ gaim_plugins_find_with_basename(const ch plugin = (GaimPlugin *)l->data; - if (plugin->path != NULL && - (tmp = g_strrstr(plugin->path, basename)) != NULL) - { - tmp += strlen(basename); - - if (*tmp == '\0') + if (plugin->path != NULL) { + tmp = g_path_get_basename(plugin->path); + if (!strcmp(tmp, basename)) { + g_free(tmp); return plugin; + } + g_free(tmp) } } |