From: Sascha Schumann Date: Thu, 10 Jan 2002 07:28:27 +0000 (+0000) Subject: Ws fix X-Git-Tag: PRE_ISSET_PATCH~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbda8d967859261e952fd1ec2025b4df18d04680;p=php Ws fix --- diff --git a/ext/session/mod_mm.c b/ext/session/mod_mm.c index 0cd684cf61..d353bbbcd1 100644 --- a/ext/session/mod_mm.c +++ b/ext/session/mod_mm.c @@ -247,16 +247,16 @@ static void ps_mm_destroy(ps_mm *data) PHP_MINIT_FUNCTION(ps_mm) { - char *ps_mm_path = calloc(strlen(PS(save_path))+1+strlen(PS_MM_FILE)+1, 1); /* Directory + '/' + File + \0 */ + char *ps_mm_path = calloc(strlen(PS(save_path))+1+strlen(PS_MM_FILE)+1, 1); /* Directory + '/' + File + \0 */ ps_mm_instance = calloc(sizeof(*ps_mm_instance), 1); - strcpy(ps_mm_path, PS(save_path)); + strcpy(ps_mm_path, PS(save_path)); - if((strlen(ps_mm_path) > 0) && (ps_mm_path[strlen(ps_mm_path)-1] != '/')) - strcat(ps_mm_path, "/"); /* Fixme Windows */ + if((strlen(ps_mm_path) > 0) && (ps_mm_path[strlen(ps_mm_path)-1] != '/')) + strcat(ps_mm_path, "/"); /* Fixme Windows */ - strcat(ps_mm_path, PS_MM_FILE); + strcat(ps_mm_path, PS_MM_FILE); if (ps_mm_initialize(ps_mm_instance, ps_mm_path) != SUCCESS) { ps_mm_instance = NULL;