From 90225ad773631a5807713dc06c450ecbc5d32bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Sun, 7 Nov 2021 19:32:48 +0100 Subject: [PATCH] file: replace PATH_MAX with 4096 to have the same limit everywhere (Windows has the macro set to < 300) --- src/devices/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/file.c b/src/devices/file.c index f17eef6..af125f5 100644 --- a/src/devices/file.c +++ b/src/devices/file.c @@ -65,7 +65,7 @@ get_entry(char *p, Uint16 len, const char *pathname, const char *basename, int f static Uint16 file_read_dir(void *dest, Uint16 len) { - static char pathname[PATH_MAX]; + static char pathname[4096]; char *p = dest; if(de == NULL) de = readdir(d); for(; de != NULL; de = readdir(d)) {