diff libpurple/protocols/msnp9/msn-utils.c @ 22373:50e5ac417035

Patch from Qulogic that fixes #4951 by making sure that the buffer is NUL- terminated at the right place
author Ka-Hing Cheung <khc@hxbc.us>
date Fri, 29 Feb 2008 04:23:00 +0000
parents a07cfce78345
children
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/msn-utils.c	Fri Feb 29 03:47:21 2008 +0000
+++ b/libpurple/protocols/msnp9/msn-utils.c	Fri Feb 29 04:23:00 2008 +0000
@@ -163,6 +163,7 @@
 		else
 			*d++ = *c;
 	}
+	*d = '\0';
 
 	return buf;
 }