]> granicus.if.org Git - php/commitdiff
(_ps_files_path_create) terminate string correctly and append the whole key instead...
authorSascha Schumann <sas@php.net>
Mon, 13 Dec 1999 15:55:49 +0000 (15:55 +0000)
committerSascha Schumann <sas@php.net>
Mon, 13 Dec 1999 15:55:49 +0000 (15:55 +0000)
ext/session/mod_files.c

index 6191fc5e9eb20b62126ee2eb9ae464d830938254..e3afbfe39acadad61e82ad6fd65eaab55568bda4 100644 (file)
@@ -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;
 }