summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-06-01 15:21:02 +0200
committerBram Moolenaar <Bram@vim.org>2012-06-01 15:21:02 +0200
commit9a920d8c31bc4d267d8790ba0d83b5774316e08f (patch)
tree9e3efd2be89a848c17b76251486cf14da09c7e9b /src/eval.c
parent704984ac87979fd20b8ba732df3abd3197814f7f (diff)
downloadvim-9a920d8c31bc4d267d8790ba0d83b5774316e08f.zip
updated for version 7.3.535
Problem: Many #ifdefs for MB_MAXBYTES. Solution: Also define MB_MAXBYTES without the +multi_byte feature. Fix places where the buffer didn't include space for a NUL byte.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/eval.c b/src/eval.c
index 07cb87f99..2dd36b012 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -19170,11 +19170,7 @@ get_vim_var_list(idx)
set_vim_var_char(c)
int c;
{
-#ifdef FEAT_MBYTE
- char_u buf[MB_MAXBYTES];
-#else
- char_u buf[2];
-#endif
+ char_u buf[MB_MAXBYTES + 1];
#ifdef FEAT_MBYTE
if (has_mbyte)