changeset 31704:4f1bd59cb90a

jabber: Make jabber_prpl_send_raw() return strlen(buf) when len is negative. This seems more sensible than returning -1 in that case.
author Paul Aurich <paul@darkrain42.org>
date Sat, 25 Jun 2011 02:34:24 +0000
parents 47c604efed32
children a99a4f9b7171
files libpurple/protocols/jabber/jabber.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Fri Jun 24 16:44:06 2011 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Sat Jun 25 02:34:24 2011 +0000
@@ -579,7 +579,7 @@
 	 */
 
 	jabber_send_raw(js, buf, len);
-	return len;
+	return (len < 0 ? strlen(buf) : len);
 }
 
 void jabber_send_signal_cb(PurpleConnection *pc, xmlnode **packet,