Mercurial > pidgin
changeset 30919:1b67c62c1051
Fix a bug where if we used fetch url with include_headers=FALSE and
then read() happens to read in the headers, the trailing \r\n\r\n and
then one byte of the body (but no more) then we accidentally dropped
the one byte off the start of the body.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 10 Nov 2010 23:41:53 +0000 |
parents | 198375f06059 |
children | 65ef833303b0 |
files | libpurple/util.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Wed Nov 10 01:22:53 2010 +0000 +++ b/libpurple/util.c Wed Nov 10 23:41:53 2010 +0000 @@ -3834,7 +3834,7 @@ } else { size_t body_len = 0; - if(gfud->len > (header_len + 1)) + if(gfud->len > (header_len)) body_len = (gfud->len - header_len); content_len = MAX(content_len, body_len);