mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Merge branch 'PHP-7.1'
* PHP-7.1: ensure the end path wouldn't contain double slashes
This commit is contained in:
commit
9db2dab858
1 changed files with 3 additions and 0 deletions
|
@ -102,6 +102,9 @@ static char *get_mmap_base_file(void)
|
|||
}
|
||||
GetTempPath(MAXPATHLEN, windir);
|
||||
l = strlen(windir);
|
||||
if ('\\' == windir[l-1]) {
|
||||
l--;
|
||||
}
|
||||
snprintf(windir + l, sizeof(windir) - l - 1, "\\%s@%s@%.32s", ACCEL_FILEMAP_BASE, uname, ZCG(system_id));
|
||||
|
||||
free(uname);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue