pidgin: 964dd46e: jabber: Make jabber_prpl_send_raw() retu...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Fri Jun 24 22:35:49 EDT 2011
----------------------------------------------------------------------
Revision: 964dd46e688370c356b8c9f20a929290f4a00e6d
Parent: 21f8c956d075901c008e47c028c7b27795cb2843
Author: darkrain42 at pidgin.im
Date: 06/24/11 22:34:24
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/964dd46e688370c356b8c9f20a929290f4a00e6d
Changelog:
jabber: Make jabber_prpl_send_raw() return strlen(buf) when len is negative.
This seems more sensible than returning -1 in that case.
Changes against parent 21f8c956d075901c008e47c028c7b27795cb2843
patched libpurple/protocols/jabber/jabber.c
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c 3f54d78e175972bddffad75e254f84e261f9bafc
+++ libpurple/protocols/jabber/jabber.c 2513198aedc5af8cea0e17ad8c30ea9f06614954
@@ -579,7 +579,7 @@ int jabber_prpl_send_raw(PurpleConnectio
*/
jabber_send_raw(js, buf, len);
- return len;
+ return (len < 0 ? strlen(buf) : len);
}
void jabber_send_signal_cb(PurpleConnection *pc, xmlnode **packet,
More information about the Commits
mailing list