pidgin: c85c4f19: I'm pretty sure we need to actually use ...

qulogic at pidgin.im qulogic at pidgin.im
Fri May 21 18:05:28 EDT 2010


-----------------------------------------------------------------
Revision: c85c4f19d48540c7fda75542a68092330ac9f39e
Ancestor: acb27e450d19e80bc6f9962b22dae7644b73ccd7
Author: qulogic at pidgin.im
Date: 2010-05-05T07:33:55
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c85c4f19d48540c7fda75542a68092330ac9f39e

Modified files:
        libpurple/protocols/msn/directconn.c

ChangeLog: 

I'm pretty sure we need to actually use dc->msg_pos for something, instead
of re-sending the same initial bytes.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/directconn.c	eaa3240c4557bd22f285e6d02d741867a9426326
+++ libpurple/protocols/msn/directconn.c	844d1322c78477b16ebc96e94cea1788dd4f3349
@@ -556,7 +556,7 @@ msn_dc_send_cb(gpointer data, gint fd, P
 	}
 
 	bytes_to_send = p->length - dc->msg_pos;
-	bytes_sent = send(fd, p->data, bytes_to_send, 0);
+	bytes_sent = send(fd, p->data + dc->msg_pos, bytes_to_send, 0);
 	if (bytes_sent < 0) {
 		if ((errno == EAGAIN) || (errno == EWOULDBLOCK))
 			return;


More information about the Commits mailing list