From: Yasuo Ohgaki Date: Thu, 10 Jan 2002 12:08:39 +0000 (+0000) Subject: Fix startup crash X-Git-Tag: PRE_ISSET_PATCH~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43c3d4495a06525faed88cbb83fad46122f02b27;p=php 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. --- 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);