summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-07-11 12:29:19 +0000
committerSascha Schumann <sas@php.net>2000-07-11 12:29:19 +0000
commitc917e170f692f62e3e3969e2d16b29f0d82278f5 (patch)
tree1dceb29711c4d6fa84fc2a53919a408943dc0185
parent3afe39e21f664fcb2ba3a40cc2b5685dcb3d4fbe (diff)
downloadphp-git-c917e170f692f62e3e3969e2d16b29f0d82278f5.tar.gz
Always use the current DIR_DELIMITER to create the session file path
-rw-r--r--ext/session/mod_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index 6a9abea04a..237a2ef567 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -98,7 +98,7 @@ 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/", data->basedir);
+ n = sprintf(buf, "%s%c", data->basedir, DIR_DELIMITER);
for (i = 0; i < data->dirdepth; i++) {
buf[n++] = *p++;
buf[n++] = DIR_DELIMITER;