changeset 7278:6d5dc6a65c47

[gaim-migrate @ 7857] This fixes a bug that was causing notify.so to load statenotify.so. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 16 Oct 2003 02:51:44 +0000
parents 2972dad4438b
children 0d24c94e4fbc
files src/plugin.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugin.c	Thu Oct 16 00:53:02 2003 +0000
+++ b/src/plugin.c	Thu Oct 16 02:51:44 2003 +0000
@@ -1022,13 +1022,13 @@
 
 		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)
 		}
 	}