Sync with openbsd glob.c 1.19

This commit is contained in:
Edin Kadribasic 2002-06-04 21:26:06 +00:00
parent 9143760ecd
commit 9d04bf58e3

View File

@ -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);