cvs: php4 /ext/session mod_mm.c

From: Date: Thu, 10 Jan 2002 12:08:39 +0000
Subject: cvs: php4 /ext/session mod_mm.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9032@lists.php.net to get a copy of this message
yohgaki Thu Jan 10 07:08:39 2002 EDT Modified files: /php4/ext/session mod_mm.c Log: 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. Index: php4/ext/session/mod_mm.c diff -u php4/ext/session/mod_mm.c:1.28 php4/ext/session/mod_mm.c:1.29 --- php4/ext/session/mod_mm.c:1.28 Thu Jan 10 02:37:10 2002 +++ php4/ext/session/mod_mm.c Thu Jan 10 07:08:39 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: mod_mm.c,v 1.28 2002/01/10 07:37:10 sas Exp $ */ +/* $Id: mod_mm.c,v 1.29 2002/01/10 12:08:39 yohgaki Exp $ */ #include "php.h" @@ -259,8 +259,10 @@ 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);

« previous php.cvs (#9032) next »