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
1 changed files with 1 additions and 1 deletions

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