summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/complist.c3
1 files changed, 2 insertions, 1 deletions
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