From: Sterling Hughes Date: Mon, 10 Sep 2001 00:25:59 +0000 (+0000) Subject: Revert, this is max error size, not strlen(error) X-Git-Tag: PRE_SUBST_Z_MACROS~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e890a36d41bb51cf6ddcd7048e3287f5631a807;p=php Revert, this is max error size, not strlen(error) --- 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); } /* }}} */