aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream_http.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/inputStream_http.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inputStream_http.c b/src/inputStream_http.c
index ace6da4ce..bbde11825 100644
--- a/src/inputStream_http.c
+++ b/src/inputStream_http.c
@@ -890,11 +890,10 @@ static size_t read_with_metadata(InputStream *is, unsigned char *ptr,
return readed;
}
-size_t inputStream_httpRead(InputStream * is, void *_ptr, size_t size,
- size_t nmemb)
+size_t inputStream_httpRead(InputStream * is, void *_ptr, size_t size)
{
struct http_data *data = (struct http_data *) is->data;
- size_t len = size * nmemb;
+ size_t len = size;
size_t r;
unsigned char *ptr = _ptr, *ptr0 = _ptr;
long tries = len / 128; /* try harder for bigger reads */