Mercurial > pidgin
changeset 13288:b68897cff861
[gaim-migrate @ 15654]
apparently I put the -1 on the wrong line. Mark Kalmanczhelyi noticed this.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 14 Feb 2006 18:38:45 +0000 |
parents | 9ee92b9cbf5d |
children | 545848e03189 |
files | src/proxy.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/proxy.c Tue Feb 14 18:07:39 2006 +0000 +++ b/src/proxy.c Tue Feb 14 18:38:45 2006 +0000 @@ -1104,8 +1104,8 @@ phb->read_len = 0; } - p = phb->read_buffer + phb->read_len - 1; - max_read = phb->read_buf_len - phb->read_len; + p = phb->read_buffer + phb->read_len; + max_read = phb->read_buf_len - phb->read_len - 1; len = read(source, p, max_read); if(len < 0 && errno == EAGAIN) @@ -1484,7 +1484,7 @@ phb->read_len = 0; } - buf = phb->read_buffer + phb->read_len - 1; + buf = phb->read_buffer + phb->read_len; max_read = phb->read_buf_len - phb->read_len; len = read(source, buf, max_read);