Mercurial > pidgin
changeset 2296:878503b60006
[gaim-migrate @ 2306]
hi
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 17 Sep 2001 16:17:21 +0000 |
parents | 24dc9ce95127 |
children | a0f6ead876ca |
files | src/server.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)