From: Edin Kadribasic Date: Tue, 4 Jun 2002 21:26:06 +0000 (+0000) Subject: Sync with openbsd glob.c 1.19 X-Git-Tag: RELEASE_0_90~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d04bf58e317b075406085d166b4597a1b9dccda;p=php Sync with openbsd glob.c 1.19 --- diff --git a/win32/glob.c b/win32/glob.c index bfdbebf605..4ffe06ae4f 100644 --- a/win32/glob.c +++ b/win32/glob.c @@ -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);