changeset 22383: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 f56fb7858ecb
children 2e5ba07ed81a
files libpurple/protocols/msn/msnutils.c libpurple/protocols/msnp9/msn-utils.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/msnutils.c	Fri Feb 29 03:47:21 2008 +0000
+++ b/libpurple/protocols/msn/msnutils.c	Fri Feb 29 04:23:00 2008 +0000
@@ -201,6 +201,7 @@
 		else
 			*d++ = *c;
 	}
+	*d = '\0';
 
 	return buf;
 }
--- 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;
 }