diff options
author | Sterling Hughes <sterling@php.net> | 2001-05-30 19:43:27 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2001-05-30 19:43:27 +0000 |
commit | 506ceb28fc0b68a70908d207c70ef1e864388bb6 (patch) | |
tree | 08ccf8725045324db8b16cdfe863e7b4287a60b2 /ext/session/mod_files.c | |
parent | 948edd322b42e896226ac69693d11814527ddb1f (diff) | |
download | php-git-506ceb28fc0b68a70908d207c70ef1e864388bb6.tar.gz |
Try #2
# aka, flying blind in a shitstorm, but it shouldn't hurt anything
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r-- | ext/session/mod_files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 1f9cc69933..dba4e48189 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 |