mirror of
https://github.com/php/php-src.git
synced 2025-01-25 05:04:20 +08:00
Try #2
# aka, flying blind in a shitstorm, but it shouldn't hurt anything
This commit is contained in:
parent
948edd322b
commit
506ceb28fc
@ -288,7 +288,7 @@ PS_WRITE_FUNC(files)
|
||||
* the existing data set.
|
||||
*/
|
||||
|
||||
if ((int) vallen < data->st_size)
|
||||
if (vallen < (int) data->st_size)
|
||||
ftruncate(data->fd, 0);
|
||||
|
||||
#ifdef HAVE_PWRITE
|
||||
|
Loading…
Reference in New Issue
Block a user