diff src/protocols/msn/msg.c @ 9092:9e5a709c30a8

[gaim-migrate @ 9869] More patches by shx. These prevent disconnects with message lengths that are past the allowed MSN message length, fixes pager messages, and provides a better error dialog stuff for MSN errors. I hope I got that all right. :) committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 27 May 2004 08:19:29 +0000
parents d16e1bfaf08a
children c30d81b4dd22
line wrap: on
line diff
--- a/src/protocols/msn/msg.c	Thu May 27 08:04:11 2004 +0000
+++ b/src/protocols/msn/msg.c	Thu May 27 08:19:29 2004 +0000
@@ -474,8 +474,13 @@
 	}
 
 	if (ret_size != NULL)
+	{
 		*ret_size = len - 1;
 
+		if (*ret_size > 1664)
+			*ret_size = 1664;
+	}
+
 	return str;
 }