changeset 30050:99f81d97cbe6

I'm pretty sure we need to actually use dc->msg_pos for something, instead of re-sending the same initial bytes.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 05 May 2010 07:33:55 +0000
parents b0a7b31dcc5d
children 447f882d1ea5
files libpurple/protocols/msn/directconn.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/directconn.c	Wed May 05 07:32:45 2010 +0000
+++ b/libpurple/protocols/msn/directconn.c	Wed May 05 07:33:55 2010 +0000
@@ -556,7 +556,7 @@
 	}
 
 	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;