diff options
| author | Sascha Schumann <sas@php.net> | 1999-12-13 15:55:49 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 1999-12-13 15:55:49 +0000 |
| commit | 75db7e91c69c02510fbc6b6154341ef880e788b4 (patch) | |
| tree | c8509f0802f4cb57e63c4bc87fd569720a1a25d1 /ext/session/mod_files.c | |
| parent | 00e3bb678d455df3c3f6b6355ce51c9714485821 (diff) | |
| download | php-git-75db7e91c69c02510fbc6b6154341ef880e788b4.tar.gz | |
(_ps_files_path_create) terminate string correctly and append the whole key instead of the rest key
Diffstat (limited to 'ext/session/mod_files.c')
| -rw-r--r-- | ext/session/mod_files.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
