]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - filematch.c
removed a temporary comment from Black
[xonotic/darkplaces.git] / filematch.c
index ff243476bc1a208e5e1b90b686e4688a50a89011..e3e35c800da5000dbb7f4158482f6451e7c6fc2e 100644 (file)
@@ -129,8 +129,8 @@ stringlist_t *listdirectory(char *path)
        struct _finddata_t n_file;
     long hFile;
        stringlist_t *start, *current;
-       strcpy(pattern, path);
-       strcat(pattern, "\\*");
+       strlcpy (pattern, path, sizeof (pattern));
+       strlcat (pattern, "\\*", sizeof (pattern));
        // ask for the directory listing handle
        hFile = _findfirst(pattern, &n_file);
        if(hFile != -1)