瀏覽代碼

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.
Rich Felker 11 年之前
父節點
當前提交
b823ef2db1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/stdio.h

+ 1 - 1
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