Mercurial > pidgin
comparison src/protocols/msn/httpconn.c @ 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 | 096020ae09a9 |
| children | 4e7ba55a1db2 |
comparison
equal
deleted
inserted
replaced
| 11339:b1f3c0d247f5 | 11340:e9d0d944b9d2 |
|---|---|
| 140 | 140 |
| 141 s = 0; | 141 s = 0; |
| 142 | 142 |
| 143 do | 143 do |
| 144 { | 144 { |
| 145 res = write(httpconn->fd, buf, buf_len); | 145 res = write(httpconn->fd, buf + s, buf_len - s); |
| 146 if (res >= 0) | 146 if (res >= 0) |
| 147 { | 147 { |
| 148 s += res; | 148 s += res; |
| 149 } | 149 } |
| 150 else if (errno != EAGAIN) | 150 else if (errno != EAGAIN) |
