changeset 24585:fb5a11ec8be6

darkrain again
author Ka-Hing Cheung <khc@hxbc.us>
date Wed, 03 Dec 2008 05:31:52 +0000
parents 2b705f7b3cbf
children e1c3a984e47a
files libpurple/protocols/jabber/jabber.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)) {