changeset 11340:e9d0d944b9d2

[gaim-migrate @ 13553] Patch #1270451 from Charlie Gordon "when write needs to be called several times to output the buffer, the data actually written is corrupted" This was a one-liner and looked correct to me. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 25 Aug 2005 06:03:43 +0000
parents b1f3c0d247f5
children 3f0fda678686
files COPYRIGHT src/protocols/msn/httpconn.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Thu Aug 25 02:35:10 2005 +0000
+++ b/COPYRIGHT	Thu Aug 25 06:03:43 2005 +0000
@@ -83,6 +83,7 @@
 Evgueni V. Gavrilov
 Ignacy Gawedzki
 Michael Golden
+Charlie Gordon
 Ryan C. Gordon
 Miah Gregory
 Christian Hammond
--- a/src/protocols/msn/httpconn.c	Thu Aug 25 02:35:10 2005 +0000
+++ b/src/protocols/msn/httpconn.c	Thu Aug 25 06:03:43 2005 +0000
@@ -142,7 +142,7 @@
 
 	do
 	{
-		res = write(httpconn->fd, buf, buf_len);
+		res = write(httpconn->fd, buf + s, buf_len - s);
 		if (res >= 0)
 		{
 			s += res;