diff options
| author | Zeev Suraski <zeev@php.net> | 2000-08-20 22:18:19 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2000-08-20 22:18:19 +0000 |
| commit | 30ccec36b9a5b2e34fec171eb748a0386babad83 (patch) | |
| tree | 3cc357d4a873487ccc0bac79d66acf5a0dc9f0e6 /ext/session/mod_files.c | |
| parent | c7999595688422de96ed208c995cceca4d165c0c (diff) | |
| download | php-git-30ccec36b9a5b2e34fec171eb748a0386babad83.tar.gz | |
Fix build
Diffstat (limited to 'ext/session/mod_files.c')
| -rw-r--r-- | ext/session/mod_files.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 3257186a03..036cc7084e 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -92,10 +92,10 @@ static char *_ps_files_path_create(char *buf, size_t buflen, ps_files *data, con (strlen(data->basedir) + 2 * data->dirdepth + keylen + 5 + sizeof(FILE_PREFIX))) return NULL; p = key; - n = sprintf(buf, "%s%c", data->basedir, PHP_SEPARATOR); + n = sprintf(buf, "%s%c", data->basedir, PHP_DIR_SEPARATOR); for (i = 0; i < data->dirdepth; i++) { buf[n++] = *p++; - buf[n++] = PHP_SEPARATOR; + buf[n++] = PHP_DIR_SEPARATOR; } buf[n] = '\0'; strcat(buf, FILE_PREFIX); @@ -169,7 +169,7 @@ static int _ps_files_cleanup_dir(const char *dirname, int maxlifetime) /* does the file start with our prefix? */ if (!strncmp(entry->d_name, FILE_PREFIX, sizeof(FILE_PREFIX) - 1) && /* create full path */ - snprintf(buf, MAXPATHLEN, "%s%c%s", dirname, PHP_SEPARATOR, + snprintf(buf, MAXPATHLEN, "%s%c%s", dirname, PHP_DIR_SEPARATOR, entry->d_name) > 0 && /* stat the directory entry */ V_STAT(buf, &sbuf) == 0 && |
