mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
(_ps_files_path_create) terminate string correctly and append the whole key instead of the rest key
This commit is contained in:
parent
00e3bb678d
commit
75db7e91c6
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue