From: foobar Date: Wed, 3 Jan 2001 16:07:55 +0000 (+0000) Subject: Fix pr #8305. X-Git-Tag: php-4.0.5RC1~749 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d52824c42d3be86db6ecc80a5341eee81138cc6a;p=php Fix pr #8305. --- diff --git a/ext/curl/curl.c b/ext/curl/curl.c index f367ba9bd9..f04b076e31 100644 --- a/ext/curl/curl.c +++ b/ext/curl/curl.c @@ -649,7 +649,7 @@ PHP_FUNCTION(curl_exec) memcpy(ret_data + pos, buf, b); pos += b; } - ret_data[stat_sb.st_size - 1] = '\0'; + ret_data[stat_sb.st_size] = '\0'; if (is_temp_file) fclose(fp);