changeset 11236:fd6d96ef5c6d

[gaim-migrate @ 13382] Federico Schwindt also pointed this out committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 11 Aug 2005 20:45:36 +0000
parents 5ea38c98ff30
children 237d65590d2b
files src/protocols/msn/slp.c src/protocols/msn/slp.h src/protocols/msn/slpcall.c
diffstat 3 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/slp.c	Thu Aug 11 19:25:48 2005 +0000
+++ b/src/protocols/msn/slp.c	Thu Aug 11 20:45:36 2005 +0000
@@ -611,7 +611,7 @@
 }
 
 MsnSlpCall *
-msn_slp_sip_recv(MsnSlpLink *slplink, const char *body, gsize len)
+msn_slp_sip_recv(MsnSlpLink *slplink, const char *body)
 {
 	MsnSlpCall *slpcall;
 
--- a/src/protocols/msn/slp.h	Thu Aug 11 19:25:48 2005 +0000
+++ b/src/protocols/msn/slp.h	Thu Aug 11 20:45:36 2005 +0000
@@ -33,7 +33,7 @@
 						  len, gsize offset);
 
 MsnSlpCall * msn_slp_sip_recv(MsnSlpLink *slplink,
-							  const char *body, gsize len);
+							  const char *body);
 
 void send_bye(MsnSlpCall *slpcall, const char *type);
 
--- a/src/protocols/msn/slpcall.c	Thu Aug 11 19:25:48 2005 +0000
+++ b/src/protocols/msn/slpcall.c	Thu Aug 11 20:45:36 2005 +0000
@@ -230,7 +230,11 @@
 
 	if (slpmsg->flags == 0x0)
 	{
-		slpcall = msn_slp_sip_recv(slplink, (const char *)body, body_len);
+		char *body_str;
+
+		body_str = g_strndup((const char *)body, body_len);
+		slpcall = msn_slp_sip_recv(slplink, body_str);
+		g_free(body_str);
 	}
 	else if (slpmsg->flags == 0x20 || slpmsg->flags == 0x1000030)
 	{