From: Sascha Schumann Date: Mon, 13 Dec 1999 15:55:49 +0000 (+0000) Subject: (_ps_files_path_create) terminate string correctly and append the whole key instead... X-Git-Tag: PRE_RETURN_REF_MERGE~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75db7e91c69c02510fbc6b6154341ef880e788b4;p=php (_ps_files_path_create) terminate string correctly and append the whole key instead of the rest key --- diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 6191fc5e9e..e3afbfe39a 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -105,8 +105,9 @@ static char *_ps_files_path_create(char *buf, size_t buflen, ps_files *data, con buf[n++] = *p++; buf[n++] = DIR_DELIMITER; } + buf[n] = '\0'; strcat(buf, FILE_PREFIX); - strcat(buf, p); + strcat(buf, key); return buf; }