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/spell.c | |
parent | 704984ac87979fd20b8ba732df3abd3197814f7f (diff) | |
download | vim-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/spell.c')
-rw-r--r-- | src/spell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spell.c b/src/spell.c index 2ab31c92f..f1099674b 100644 --- a/src/spell.c +++ b/src/spell.c @@ -13694,7 +13694,7 @@ similar_chars(slang, c1, c2) { int m1, m2; #ifdef FEAT_MBYTE - char_u buf[MB_MAXBYTES]; + char_u buf[MB_MAXBYTES + 1]; hashitem_T *hi; if (c1 >= 256) |