mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
add zero-terminator to the delimiter (and make valgrind happy)
This commit is contained in:
parent
8f8b51bc87
commit
ae7eff10e8
1 changed files with 2 additions and 1 deletions
|
@ -102,7 +102,7 @@ static void phar_split_cache_list(TSRMLS_D)
|
|||
{
|
||||
char *tmp;
|
||||
char *key, *lasts, *end;
|
||||
char ds[1];
|
||||
char ds[2];
|
||||
phar_archive_data *phar;
|
||||
uint i = 0;
|
||||
|
||||
|
@ -111,6 +111,7 @@ static void phar_split_cache_list(TSRMLS_D)
|
|||
}
|
||||
|
||||
ds[0] = DEFAULT_DIR_SEPARATOR;
|
||||
ds[1] = '\0';
|
||||
tmp = estrdup(PHAR_GLOBALS->cache_list);
|
||||
|
||||
/* fake request startup */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue