From 061bf1e96c7f3fa5d50374a7170b20d4c3e4d002 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 13 Apr 2005 15:15:46 +0000 Subject: [PATCH] * return length directly in curl cb --- http_curl_api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http_curl_api.c b/http_curl_api.c index e94e5dc..1da840c 100644 --- a/http_curl_api.c +++ b/http_curl_api.c @@ -105,8 +105,7 @@ static inline char *_http_curl_copystr(const char *str TSRMLS_DC) /* {{{ static size_t http_curl_callback(char *, size_t, size_t, void *) */ static size_t http_curl_callback(char *buf, size_t len, size_t n, void *s) { - phpstr_append(PHPSTR(s), buf, len *= n); - return len; + return phpstr_append(PHPSTR(s), buf, len *= n); } /* }}} */ -- 2.30.2