From 0da7162ed6b2f7ae727fb7c69e52d3b52a872600 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 23 Feb 2005 13:59:33 +0000 Subject: 20856: use VARARR for multibyte string. --- Src/Zle/complist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/Zle') diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index b0baa490f..a4e9dcbd9 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -1862,7 +1862,8 @@ static Cmatch ** msearch(Cmatch **ptr, int ins, int back, int rep, int *wrapp) { #ifdef ZLE_UNICODE_SUPPORT - char s[MB_CUR_MAX+1]; + /* MB_CUR_MAX may not be constant */ + VARARR(char *, s, MB_CUR_MAX+1); #else char s[2]; #endif -- cgit 1.4.1