changeset 22727:cd682b57b6e4

Use g_strdup to match the subsequent g_free.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 25 Apr 2008 16:08:48 +0000
parents 1cd99421c696
children 36e5b74b2f74
files libpurple/protocols/irc/msgs.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/irc/msgs.c	Fri Apr 25 15:48:33 2008 +0000
+++ b/libpurple/protocols/irc/msgs.c	Fri Apr 25 16:08:48 2008 +0000
@@ -715,7 +715,7 @@
 		return;
 	}
 
-	g_hash_table_insert(components, strdup("channel"), strdup(args[1]));
+	g_hash_table_insert(components, g_strdup("channel"), g_strdup(args[1]));
 
 	serv_got_chat_invite(gc, args[1], nick, NULL, components);
 	g_free(nick);
@@ -980,7 +980,7 @@
 	if (!args || !args[1])
 		return;
 
-	newnick = strdup(args[1]);
+	newnick = g_strdup(args[1]);
 	end = newnick + strlen(newnick) - 1;
 	/* try fallbacks */
 	if((*end < '9') && (*end >= '1')) {