diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-06-01 15:21:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-06-01 15:21:02 +0200 |
commit | 9a920d8c31bc4d267d8790ba0d83b5774316e08f (patch) | |
tree | 9e3efd2be89a848c17b76251486cf14da09c7e9b /src/misc1.c | |
parent | 704984ac87979fd20b8ba732df3abd3197814f7f (diff) | |
download | vim-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.c | 2 |
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); |