changeset 7771:a481ffe303d2

[gaim-migrate @ 8416] off by one committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 05 Dec 2003 21:40:44 +0000
parents 41bcf3f62563
children 85abf91f2387
files src/protocols/yahoo/yahoo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Fri Dec 05 20:18:21 2003 +0000
+++ b/src/protocols/yahoo/yahoo.c	Fri Dec 05 21:40:44 2003 +0000
@@ -806,7 +806,7 @@
 	char *converted;
 	char *p, *n, *new;
 	
-	n = new = g_malloc(strlen (text));
+	n = new = g_malloc(strlen (text) + 1);
 
 	for (p = (char *)text; *p; p++, n++) {
 		if (*p == '\\') {