/pidgin/main: e9c97bff3701: "unlimited" is not a valid value whe...

Mark Doliner mark at kingant.net
Tue Jan 28 10:38:09 EST 2014


Changeset: e9c97bff3701550bbfd0634d92041012a7465af6
Author:	 Mark Doliner <mark at kingant.net>
Date:	 2013-04-14 12:49 -0700
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/e9c97bff3701

Description:

"unlimited" is not a valid value when fetching an http document.
The function defauls to 512 KiB if a negative max is specified.

diffstat:

 libpurple/util.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff --git a/libpurple/util.h b/libpurple/util.h
--- a/libpurple/util.h
+++ b/libpurple/util.h
@@ -1196,7 +1196,8 @@ PurpleUtilFetchUrlData *purple_util_fetc
  *                   standard GET
  * @param include_headers
  *                   If TRUE, include the HTTP headers in the response.
- * @param max_len    The maximum number of bytes to retrieve (-1 for unlimited)
+ * @param max_len    The maximum number of bytes to retrieve, or a negative
+ *                   number to use the default max of 512 KiB.
  * @param callback   The callback function.
  * @param data       The user data to pass to the callback function.
  * @deprecated       In 3.0.0, we'll rename this to "purple_util_fetch_url_request" and get rid of the old one



More information about the Commits mailing list