diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-07-19 11:00:13 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-07-19 11:05:23 -0700 |
commit | 1cdcf9df88144049750116e36fe20c8c39fa2517 (patch) | |
tree | 50c1e6a066fb2e0bbdcd0560825ba534cbd040b8 | |
parent | 5a28f14096c3f2e548cdf6bcfd008930e6a4e733 (diff) | |
download | uemacs-1cdcf9df88144049750116e36fe20c8c39fa2517.tar.gz |
Not that I know why. 80-character filename limits are kind of cute.
Joerg suggested _POSIX_PATH_MAX, which is almost certainly the right
value. But that's bigger than HUGE:
#define HUGE 1000 /* Huge number */
which obviously means we shouldn't go quite *that* extreme.
Remember, we come from the days when it was hard to do allocations
larger than 64kB. We have limits, dammit.
"256 bytes is enough for anybody"
Reported-by: Joerg Scheurich <mufti11@web.de>
Signed-off-by: Linus Torvalds <torvalds@linux-coundation.org>
-rw-r--r-- | estruct.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -226,7 +226,7 @@ /* Internal constants. */ #define NBINDS 256 /* max # of bound keys */ -#define NFILEN 80 /* # of bytes, file name */ +#define NFILEN 256 /* # of bytes, file name */ #define NBUFN 16 /* # of bytes, buffer name */ #define NLINE 256 /* # of bytes, input line */ #define NSTRING 128 /* # of bytes, string buffers */ |