projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f5fe45
)
fix FILENAME_MAX to match PATH_MAX
author
Rich Felker
<dalias@aerifal.cx>
Thu, 18 Jul 2013 18:15:48 +0000
(14:15 -0400)
committer
Rich 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
patch
|
blob
|
history
diff --git
a/include/stdio.h
b/include/stdio.h
index fe7ff51d4b524fe6dbacc2051019d4cc18e6648d..ad407fb143e8c0e3565f9bf4cba461d175f40d39 100644
(file)
--- a/
include/stdio.h
+++ b/
include/stdio.h
@@
-38,7
+38,7
@@
extern "C" {
#define _IONBF 2
#define BUFSIZ 1024
-#define FILENAME_MAX 409
5
+#define FILENAME_MAX 409
6
#define FOPEN_MAX 1000
#define TMP_MAX 10000
#define L_tmpnam 20