fix FILENAME_MAX to match PATH_MAX
authorRich Felker <dalias@aerifal.cx>
Thu, 18 Jul 2013 18:15:48 +0000 (14:15 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 18 Jul 2013 18:15:48 +0000 (14:15 -0400)
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.

include/stdio.h

index fe7ff51..ad407fb 100644 (file)
@@ -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