diff src/protocols/toc/toc.c @ 2343:29449a6b79e6

[gaim-migrate @ 2356] fix committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 22 Sep 2001 02:19:48 +0000
parents b53cd5b63a99
children db02399a9ad7
line wrap: on
line diff
--- a/src/protocols/toc/toc.c	Fri Sep 21 20:57:20 2001 +0000
+++ b/src/protocols/toc/toc.c	Sat Sep 22 02:19:48 2001 +0000
@@ -847,7 +847,7 @@
 static int toc_send_im(struct gaim_connection *gc, char *name, char *message, int flags)
 {
 	char buf[BUF_LEN * 2];
-	char *tmp = g_malloc(strlen(message) * 2);
+	char *tmp = g_malloc(strlen(message) * 4 + 1); /* 4 because \n gets replaced with <BR> */
 
 	strcpy(tmp, message);
 	escape_text(tmp);