summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-06-16 09:07:49 +0000
committerBram Moolenaar <Bram@vim.org>2009-06-16 09:07:49 +0000
commit0bd40c0c0ab6b39b9806e6a823e34749c779934a (patch)
tree64f8ced20f617f4810584d0a1aeae4bfaed09db3 /src/vim.h
parent446b179cacfdf7cd2e77697334e9dcad7614a692 (diff)
downloadvim-git-0bd40c0c0ab6b39b9806e6a823e34749c779934a.tar.gz
updated for version 7.2-198v7.2.198
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vim.h b/src/vim.h
index 979f435be..88541e5f9 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1345,11 +1345,11 @@ typedef enum
# define MSG_BUF_CLEN MSG_BUF_LEN /* cell length */
#endif
-#if defined(AMIGA) || defined(__linux__) || defined(__QNX__) || defined(__CYGWIN32__) || defined(_AIX)
-# define TBUFSZ 2048 /* buffer size for termcap entry */
-#else
-# define TBUFSZ 1024 /* buffer size for termcap entry */
-#endif
+/* Size of the buffer used for tgetent(). Unfortunately this is largely
+ * undocumented, some systems use 1024. Using a buffer that is too small
+ * causes a buffer overrun and a crash. Use the maximum known value to stay
+ * on the safe side. */
+#define TBUFSZ 2048 /* buffer size for termcap entry */
/*
* Maximum length of key sequence to be mapped.