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:
parent
42d0f65d12
commit
90225ad773
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ get_entry(char *p, Uint16 len, const char *pathname, const char *basename, int f
|
||||||
static Uint16
|
static Uint16
|
||||||
file_read_dir(void *dest, Uint16 len)
|
file_read_dir(void *dest, Uint16 len)
|
||||||
{
|
{
|
||||||
static char pathname[PATH_MAX];
|
static char pathname[4096];
|
||||||
char *p = dest;
|
char *p = dest;
|
||||||
if(de == NULL) de = readdir(d);
|
if(de == NULL) de = readdir(d);
|
||||||
for(; de != NULL; de = readdir(d)) {
|
for(; de != NULL; de = readdir(d)) {
|
||||||
|
|
Loading…
Reference in a new issue