]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - filematch.c
com: rename BSD strlcpy and strlcat
[xonotic/darkplaces.git] / filematch.c
index d9c73bbd0a0a34bd0044ca1b82d2eefedad20e67..38ee0372e940211702ecb710b3504852bd5c26b3 100644 (file)
@@ -176,9 +176,9 @@ void listdirectory(stringlist_t *list, const char *basepath, const char *path)
        int lenw = 0;
        WIN32_FIND_DATAW n_file;
        HANDLE hFile;
-       strlcpy (pattern, basepath, sizeof(pattern));
-       strlcat (pattern, path, sizeof (pattern));
-       strlcat (pattern, "*", sizeof (pattern));
+       dp_strlcpy(pattern, basepath, sizeof(pattern));
+       dp_strlcat(pattern, path, sizeof (pattern));
+       dp_strlcat(pattern, "*", sizeof (pattern));
        fromwtf8(pattern, strlen(pattern), patternw, BUFSIZE);
        // ask for the directory listing handle
        hFile = FindFirstFileW(patternw, &n_file);