From 9a920d8c31bc4d267d8790ba0d83b5774316e08f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 1 Jun 2012 15:21:02 +0200 Subject: 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. --- src/misc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc1.c') 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); -- cgit v1.2.1