From 27b98f353293437387da06b79f2fc5c5d716ff16 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 29 May 2014 20:04:10 +0000 Subject: [PATCH] Clarify comment in CURL_fwrite. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12082 d7cf8633-e32d-0410-b094-e92efae38249 --- libcurl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libcurl.c b/libcurl.c index fd1671ff..43051547 100644 --- a/libcurl.c +++ b/libcurl.c @@ -430,7 +430,10 @@ static size_t CURL_fwrite(void *data, size_t size, size_t nmemb, void *vdi) di->bytes_received += bytes; - return ret; // why not ret / nmemb? + return ret; + // Why not ret / nmemb? + // Because CURLOPT_WRITEFUNCTION docs say to return the number of bytes. + // Yes, this is incompatible to fwrite(2). } typedef enum -- 2.39.2