mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Sync with openbsd glob.c 1.19
This commit is contained in:
parent
9143760ecd
commit
9d04bf58e3
@ -825,7 +825,7 @@ g_opendir(str, pglob)
|
||||
char buf[MAXPATHLEN];
|
||||
|
||||
if (!*str)
|
||||
strcpy(buf, ".");
|
||||
strlcpy(buf, ".", sizeof buf);
|
||||
else {
|
||||
if (g_Ctoc(str, buf, sizeof(buf)))
|
||||
return(NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user