summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-02-23 13:59:33 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-02-23 13:59:33 +0000
commit0da7162ed6b2f7ae727fb7c69e52d3b52a872600 (patch)
tree5ae2fd7d8569cf3207d5862277f9925be4a6dc06 /Src/Zle
parentd9137fd4b6031f0d1640b31779b41dbf742df18d (diff)
downloadzsh-0da7162ed6b2f7ae727fb7c69e52d3b52a872600.tar.gz
zsh-0da7162ed6b2f7ae727fb7c69e52d3b52a872600.tar.xz
zsh-0da7162ed6b2f7ae727fb7c69e52d3b52a872600.zip
20856: use VARARR for multibyte string.
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