pidgin: cc3c95af: Fix a bug where if we used fetch url wit...

markdoliner at pidgin.im markdoliner at pidgin.im
Wed Nov 10 18:50:43 EST 2010


----------------------------------------------------------------------
Revision: cc3c95af1aaf75f791f0540fe047da6650080bef
Parent:   094942f014a13323160fa3a7843796091fd5cde8
Author:   markdoliner at pidgin.im
Date:     11/10/10 18:41:53
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/cc3c95af1aaf75f791f0540fe047da6650080bef

Changelog: 

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.

Changes against parent 094942f014a13323160fa3a7843796091fd5cde8

  patched  libpurple/util.c

-------------- next part --------------
============================================================
--- libpurple/util.c	a0e7bd39a62ae4263061cc98a80bc2ecf1e00e5b
+++ libpurple/util.c	42a279dba6390bec6244be29da1f190669f927ad
@@ -3834,7 +3834,7 @@ url_fetch_recv_cb(gpointer url_data, gin
 				} 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);


More information about the Commits mailing list