diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-07-18 14:15:48 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-07-18 14:15:48 -0400 |
commit | b823ef2db13a5d86df03bcf6bfd4b92559c0b154 (patch) | |
tree | 5736781333a2756caf14fea58f9764cc5487855c | |
parent | 2f5fe458085fe8f9d0448aa1ef4eb9143b8b18ca (diff) | |
download | musl-b823ef2db13a5d86df03bcf6bfd4b92559c0b154.zip musl-b823ef2db13a5d86df03bcf6bfd4b92559c0b154.tar.gz musl-b823ef2db13a5d86df03bcf6bfd4b92559c0b154.tar.bz2 |
fix FILENAME_MAX to match PATH_MAX
POSIX is not clear on whether it includes the termination, but ISO C
requires that it does. the whole concept of this macro is rather
useless, but it's better to be correct anyway.
-rw-r--r-- | include/stdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h index fe7ff51..ad407fb 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -38,7 +38,7 @@ extern "C" { #define _IONBF 2 #define BUFSIZ 1024 -#define FILENAME_MAX 4095 +#define FILENAME_MAX 4096 #define FOPEN_MAX 1000 #define TMP_MAX 10000 #define L_tmpnam 20 |