]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - filematch.c
Fix a parameter switch typo in the linux code.
[xonotic/darkplaces.git] / filematch.c
index 9092f55181332625e093091a80b949cf97a14013..622f774bc204fdcf680a6c066c485e77781f389f 100644 (file)
@@ -162,7 +162,7 @@ void listdirectory(stringlist_t *list, const char *basepath, const char *path)
        char fullpath[MAX_OSPATH];
        DIR *dir;
        struct dirent *ent;
-       dpsnprintf(fullpath, "%s%s", sizeof(fullpath), basepath, *path ? path : "./");
+       dpsnprintf(fullpath, sizeof(fullpath), "%s%s", basepath, *path ? path : "./");
        dir = opendir(fullpath);
        if (!dir)
                return;