changeset 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 9fcbb18aa7be
children 9883e3398e37
files COPYRIGHT ChangeLog src/protocols/msn/msnobject.c src/protocols/msn/msnslp.c
diffstat 4 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Thu May 27 05:53:00 2004 +0000
+++ b/COPYRIGHT	Thu May 27 06:06:03 2004 +0000
@@ -31,6 +31,7 @@
 Felipe Contreras
 Adam Cowell
 Jeramey Crawford
+Finlay Dobbie
 Mark Doliner
 Nuno Donato
 Jim Duchek
--- a/ChangeLog	Thu May 27 05:53:00 2004 +0000
+++ b/ChangeLog	Thu May 27 06:06:03 2004 +0000
@@ -36,7 +36,8 @@
 	* Fixed a privacy-related bug in MSN that affected blocking/permitting,
 	  which was due to case-sensitive string comparisons (Gudmundur Olafsson)
 	* Fixed an MSN HTTP method bug where MSN would queue data indefinitely.
-	  (Andrew Wellington).
+	  (Andrew Wellington)
+	* Several bug fixes for MSN's MSNSLP and MSNObject support (Finlay Dobbie)
 	* ALT-F works correctly in the System Log Viewer (Stu Tomlinson)
 	* New tabs should scroll correctly again (Tim Ringenbach)
 	* Dialogs opened from a conversation window are now closed when
--- 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); \
 		} \
 	}
--- a/src/protocols/msn/msnslp.c	Thu May 27 05:53:00 2004 +0000
+++ b/src/protocols/msn/msnslp.c	Thu May 27 06:06:03 2004 +0000
@@ -438,6 +438,7 @@
 	}
 
 	msg->msnslp_header.total_size_1 = slpsession->orig_len;
+	msg->msnslp_header.length = slpsession->orig_len;
 
 	send_msg_part(slpsession, msg);
 }