# HG changeset patch # User Eric Warmenhoven # Date 1000743441 0 # Node ID 878503b60006328f5f54fa3795253150ad2ca8be # Parent 24dc9ce95127ab30e098f6716ea1bb557bf0406f [gaim-migrate @ 2306] hi committer: Tailor Script diff -r 24dc9ce95127 -r 878503b60006 src/server.c --- a/src/server.c Mon Sep 17 09:42:23 2001 +0000 +++ b/src/server.c Mon Sep 17 16:17:21 2001 +0000 @@ -902,6 +902,7 @@ int w; GSList *bcs = g->buddy_chats; struct conversation *b = NULL; + char *buf; while (bcs) { b = (struct conversation *)bcs->data; @@ -917,8 +918,11 @@ if (plugin_event(event_chat_recv, g, b->name, who, message)) return; + buf = g_malloc(MAX(strlen(message) * 2, 8192)); + strcpy(buf, message); + if (general_options & OPT_GEN_SEND_LINKS) { - linkify_text(message); + linkify_text(buf); } if (whisper) @@ -926,7 +930,8 @@ else w = 0; - chat_write(b, who, w, message, mtime); + chat_write(b, who, w, buf, mtime); + g_free(buf); } void send_keepalive(gpointer d)