1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 00:48:25 +02:00
# aka, flying blind in a shitstorm, but it shouldn't hurt anything
This commit is contained in:
Sterling Hughes
2001-05-30 19:43:27 +00:00
parent 948edd322b
commit 506ceb28fc
+1 -1
View File
@@ -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