summaryrefslogtreecommitdiff
path: root/ext/curl/curl.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-09-10 00:25:59 +0000
committerSterling Hughes <sterling@php.net>2001-09-10 00:25:59 +0000
commit2e890a36d41bb51cf6ddcd7048e3287f5631a807 (patch)
tree08dd5a840d49355830787e734dd9b01685eff983 /ext/curl/curl.c
parent5830ffeb48021e80b142d41d237d655caa2eced7 (diff)
downloadphp-git-2e890a36d41bb51cf6ddcd7048e3287f5631a807.tar.gz
Revert, this is max error size, not strlen(error)
Diffstat (limited to 'ext/curl/curl.c')
-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);
}
/* }}} */