diff src/protocols/msn/msnobject.c @ 9087:f32ee2e97b37

[gaim-migrate @ 9864] Several small MSN bug fixes by Finlay Dobbie. These ones fix some problems in the MSNSLP and MSNObject code. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 27 May 2004 06:06:03 +0000
parents 06f57183e29f
children ab6636c5a136
line wrap: on
line diff
--- a/src/protocols/msn/msnobject.c	Thu May 27 05:53:00 2004 +0000
+++ b/src/protocols/msn/msnobject.c	Thu May 27 06:06:03 2004 +0000
@@ -39,6 +39,7 @@
 		if (c != NULL) \
 		{ \
 			strncpy(buf, tag, c - tag); \
+			buf[c - tag] = '\0'; \
 			obj->field = atoi(buf); \
 		} \
 	}