From 75db7e91c69c02510fbc6b6154341ef880e788b4 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Mon, 13 Dec 1999 15:55:49 +0000 Subject: [PATCH] (_ps_files_path_create) terminate string correctly and append the whole key instead of the rest key --- ext/session/mod_files.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.50.1