mirror of
https://github.com/php/php-src.git
synced 2024-12-11 10:54:47 +08:00
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: ensure the end path wouldn't contain double slashes
This commit is contained in:
commit
a7b20894e5
@ -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…
Reference in New Issue
Block a user