0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-23 14:25:10 +00:00

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

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-11-07 19:32:48 +01:00
parent 42d0f65d12
commit 90225ad773
No known key found for this signature in database
GPG key ID: FC8DDA5A6A7456C4

View file

@ -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)) {