* return length directly in curl cb
authorMichael Wallner <mike@php.net>
Wed, 13 Apr 2005 15:15:46 +0000 (15:15 +0000)
committerMichael Wallner <mike@php.net>
Wed, 13 Apr 2005 15:15:46 +0000 (15:15 +0000)
http_curl_api.c

index e94e5dc732d5446e87022f22f4fc1ff2c7491541..1da840cdffbfbc8ecec2ea4bb22bd6aaa6cfbc77 100644 (file)
@@ -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);
 }
 /* }}} */