diff src/util.c @ 1521:ba83e9e2fd9b

[gaim-migrate @ 1531] fix double-escaping of away messages and fix segfault for away messages that only consist of {}\\\"\n committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 01 Mar 2001 02:29:54 +0000
parents 5c67b8794991
children ba8e6e211af5
line wrap: on
line diff
--- a/src/util.c	Thu Mar 01 01:07:13 2001 +0000
+++ b/src/util.c	Thu Mar 01 02:29:54 2001 +0000
@@ -518,7 +518,7 @@
 		msg[2047] = '\0';
 	}
 
-	woo = malloc(strlen(msg) * 2);
+	woo = malloc(strlen(msg) * 4 + 1);
 	cpy = g_strdup(msg);
 	c = cpy;
 	while (*c) {