diff --git a/include/stdio.h b/include/stdio.h index e78a4d05d..d5055bd58 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -189,7 +189,7 @@ __END_DECLS */ /* must be == _POSIX_STREAM_MAX */ #define FOPEN_MAX 20 /* must be <= OPEN_MAX */ -#define FILENAME_MAX 255 /* must be <= PATH_MAX */ +#define FILENAME_MAX 1024 /* must be <= PATH_MAX */ /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */ #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)