[gaim-migrate @ 14435]

Fri, 18 Nov 2005 14:57:19 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Fri, 18 Nov 2005 14:57:19 +0000
changeset 12135
21d900c9b5d2
parent 12134
8652eeb5ff59
child 12136
027b7ebee256

[gaim-migrate @ 14435]
Uh...

src/protocols/sametime/sametime.c file | annotate | diff | comparison | revisions
--- 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);
 }
 

mercurial