cvs: /php4/ext/session mod_files.c
| From: | Sascha Schumann | Date: | Mon, 13 Dec 1999 15:56:20 +0000 |
| Subject: | cvs: /php4/ext/session mod_files.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-7853@lists.php.net to get a copy of this message | ||
sas Mon Dec 13 10:56:20 1999 EDT
Modified files:
/php4/ext/session mod_files.c
Log:
(_ps_files_path_create) terminate string correctly and append the whole key instead of the rest
key
Index: php4/ext/session/mod_files.c
diff -u php4/ext/session/mod_files.c:1.20 php4/ext/session/mod_files.c:1.21
--- php4/ext/session/mod_files.c:1.20 Fri Dec 3 12:05:23 1999
+++ php4/ext/session/mod_files.c Mon Dec 13 10:55:49 1999
@@ -105,8 +105,9 @@
buf[n++] = *p++;
buf[n++] = DIR_DELIMITER;
}
+ buf[n] = '\0';
strcat(buf, FILE_PREFIX);
- strcat(buf, p);
+ strcat(buf, key);
return buf;
}