From: Michael Wallner Date: Wed, 13 Apr 2005 15:15:46 +0000 (+0000) Subject: * return length directly in curl cb X-Git-Tag: RELEASE_0_8_0~62 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=061bf1e96c7f3fa5d50374a7170b20d4c3e4d002;p=m6w6%2Fext-http * return length directly in curl cb --- 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); } /* }}} */