mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Fix pr #8305.
This commit is contained in:
parent
31a1c0aca6
commit
d52824c42d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user