diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-01-10 12:08:39 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-01-10 12:08:39 +0000 |
commit | 43c3d4495a06525faed88cbb83fad46122f02b27 (patch) | |
tree | 7ebaadc4d5ed9e874555a5795055a9f5bcbcb6e7 | |
parent | daecaa729c97231b91b26a16557f729bf58b4934 (diff) | |
download | php-git-43c3d4495a06525faed88cbb83fad46122f02b27.tar.gz |
Fix startup crash
# Sascha, thanks for fixing poor patch :)
# mm save handler does not work regardlress of
# save path patch or not for some reason.
-rw-r--r-- | ext/session/mod_mm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/session/mod_mm.c b/ext/session/mod_mm.c index 70e99cc213..bb77926aa0 100644 --- a/ext/session/mod_mm.c +++ b/ext/session/mod_mm.c @@ -259,8 +259,10 @@ PHP_MINIT_FUNCTION(ps_mm) memcpy(ps_mm_path, PS(save_path), len + 1); - if (len > 0 && ps_mm_path[len - 1] != DEFAULT_DIR_SEPARATOR) - strcat(ps_mm_path, DEFAULT_DIR_SEPARATOR); + if (len > 0 && ps_mm_path[len - 1] != DEFAULT_SLASH) { + ps_mm_path[len] = DEFAULT_SLASH; + ps_mm_path[len+1] = '\0'; + } strcat(ps_mm_path, PS_MM_FILE); |