summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/curl/curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curl/curl.c b/ext/curl/curl.c
index 60ae36f1f7..c6b9585247 100644
--- a/ext/curl/curl.c
+++ b/ext/curl/curl.c
@@ -961,7 +961,7 @@ PHP_FUNCTION(curl_error)
ZEND_FETCH_RESOURCE(ch, php_curl *, zid, -1, le_curl_name, le_curl);
ch->err.str[CURL_ERROR_SIZE] = 0;
- RETURN_STRINGL(ch->err.str, CURL_ERROR_SIZE, 1);
+ RETURN_STRINGL(ch->err.str, 1);
}
/* }}} */