changeset 12135:e09bf5bc81d8

[gaim-migrate @ 14435] Uh... committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 18 Nov 2005 14:57:19 +0000
parents 9f34340f2445
children 370f9d7868f9
files src/protocols/sametime/sametime.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/sametime/sametime.c	Fri Nov 18 14:49:47 2005 +0000
+++ b/src/protocols/sametime/sametime.c	Fri Nov 18 14:57:19 2005 +0000
@@ -1682,8 +1682,8 @@
   GaimAccount *acct;
   GaimConversation *conv;
   GaimBuddy *buddy;
-  char *who = from->user_id;
-  char *msg;
+  const char *who = from->user_id;
+  char *tmp, *msg;
   
   pd = mwSession_getClientData(s);
   acct = gaim_connection_get_account(pd->gc);
@@ -1692,14 +1692,14 @@
 
   buddy = gaim_find_buddy(acct, who);
   if(buddy) {
-    who = g_strdup(gaim_buddy_get_contact_alias(buddy));
+    who = gaim_buddy_get_contact_alias(buddy);
   }
 
-  who = g_strdup_printf(_("Announcement from %s"), who);
+  tmp = g_strdup_printf(_("Announcement from %s"), who);
   msg = gaim_markup_linkify(text);
 
-  gaim_conversation_write(conv, who, msg, GAIM_MESSAGE_RECV, time(NULL));
-  g_free(who);
+  gaim_conversation_write(conv, tmp, msg, GAIM_MESSAGE_RECV, time(NULL));
+  g_free(tmp);
   g_free(msg);
 }