diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-06-16 09:07:49 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-06-16 09:07:49 +0000 |
commit | 0bd40c0c0ab6b39b9806e6a823e34749c779934a (patch) | |
tree | 64f8ced20f617f4810584d0a1aeae4bfaed09db3 /src/vim.h | |
parent | 446b179cacfdf7cd2e77697334e9dcad7614a692 (diff) | |
download | vim-git-0bd40c0c0ab6b39b9806e6a823e34749c779934a.tar.gz |
updated for version 7.2-198v7.2.198
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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. |