aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-07-19 11:00:13 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2018-07-19 11:05:23 -0700
commit1cdcf9df88144049750116e36fe20c8c39fa2517 (patch)
tree50c1e6a066fb2e0bbdcd0560825ba534cbd040b8
parent5a28f14096c3f2e548cdf6bcfd008930e6a4e733 (diff)
downloaduemacs-1cdcf9df88144049750116e36fe20c8c39fa2517.tar.gz
Allow bigger filenamesHEADmaster
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/estruct.h b/estruct.h
index 8240f78..bcef6d8 100644
--- a/estruct.h
+++ b/estruct.h
@@ -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 */