From 2e890a36d41bb51cf6ddcd7048e3287f5631a807 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Mon, 10 Sep 2001 00:25:59 +0000 Subject: [PATCH] Revert, this is max error size, not strlen(error) --- ext/curl/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /* }}} */ -- 2.50.1