This commit is contained in:
foobar 2001-01-03 16:07:55 +00:00
parent 31a1c0aca6
commit d52824c42d

View File

@ -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);