# HG changeset patch # User Mark Doliner # Date 1289432513 0 # Node ID 1b67c62c1051314f6d9abc2ac11a81ea8b279372 # Parent 198375f06059a19798658c414e4fc88be167b63a 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. diff -r 198375f06059 -r 1b67c62c1051 libpurple/util.c --- 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);