diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 1f9cc699335..dba4e481896 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -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