uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 90225ad773631a5807713dc06c450ecbc5d32bab
parent 42d0f65d12946547ff1e21eba94d7bd327acc025
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date:   Sun,  7 Nov 2021 19:32:48 +0100

file: replace PATH_MAX with 4096 to have the same limit everywhere (Windows has the macro set to < 300)

Diffstat:
Msrc/devices/file.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)) {