about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/Zle/complist.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 256978edb..1bf9ad527 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-02-23  Peter Stephenson  <pws@csr.com>
 
+	* 20856: Src/Zle/complist.c: use VARARR for multibyte string.
+
 	* 20854: Src/Zle/complist.c, Src/Zle/zle.h, Src/Zle/zle_hist.c,
 	Src/Zle/zle_main.c, Src/Zle/zle_misc.c, Src/Zle/zle_move.c,
 	Src/Zle/zle_params.c, Src/Zle/zle_refresh.c, Src/Zle/zle_tricky.c,
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