diff libpurple/protocols/jabber/jabber.c @ 24585:fb5a11ec8be6

darkrain again
author Ka-Hing Cheung <khc@hxbc.us>
date Wed, 03 Dec 2008 05:31:52 +0000
parents 6b9552b09de0
children 641fe4c2b2a5 25e2ab1fff1d f03a067fcfba e1331f6126ba ef09497b1674 a0fd6a41d127
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Tue Dec 02 18:48:54 2008 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Wed Dec 03 05:31:52 2008 +0000
@@ -154,7 +154,7 @@
 		return NULL;
 
 	if (strstr(input, "__HOSTNAME__") == NULL)
-		return input;
+		return g_strdup(input);
 
 	/* Replace __HOSTNAME__ with hostname */
 	if (gethostname(hostname, sizeof(hostname) - 1)) {