diff options
author | Sterling Hughes <sterling@php.net> | 2001-05-30 19:56:11 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2001-05-30 19:56:11 +0000 |
commit | 28160f73d0e976b4f4ee448de2129bcb83d9841f (patch) | |
tree | e621859129067b516479fdeb0c22494aeb002256 /ext/session/mod_files.c | |
parent | 506ceb28fc0b68a70908d207c70ef1e864388bb6 (diff) | |
download | php-git-28160f73d0e976b4f4ee448de2129bcb83d9841f.tar.gz |
Revert as per Herr Schumann's request.
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r-- | ext/session/mod_files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index dba4e48189..477b0e8061 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -96,7 +96,7 @@ static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, cons memcpy(buf, data->basedir, data->basedir_len); n = data->basedir_len; buf[n++] = PHP_DIR_SEPARATOR; - for (i = 0; i < (int) data->dirdepth; i++) { + for (i = 0; i < data->dirdepth; i++) { buf[n++] = *p++; buf[n++] = PHP_DIR_SEPARATOR; } @@ -288,7 +288,7 @@ PS_WRITE_FUNC(files) * the existing data set. */ - if (vallen < (int) data->st_size) + if (vallen < data->st_size) ftruncate(data->fd, 0); #ifdef HAVE_PWRITE |