summaryrefslogtreecommitdiff
path: root/src/misc1.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/misc1.c
parent704984ac87979fd20b8ba732df3abd3197814f7f (diff)
downloadvim-git-9a920d8c31bc4d267d8790ba0d83b5774316e08f.tar.gz
updated for version 7.3.535v7.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/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c
index b30b07771..8588411df 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -1932,7 +1932,7 @@ ins_char(c)
int c;
{
#if defined(FEAT_MBYTE) || defined(PROTO)
- char_u buf[MB_MAXBYTES];
+ char_u buf[MB_MAXBYTES + 1];
int n;
n = (*mb_char2bytes)(c, buf);