about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/complist.c2
-rw-r--r--Src/Zle/zle_refresh.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a6e5c712..129ff560f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-08-10  Peter Stephenson  <pws@csr.com>
 
+	* 21593: Src/Zle/complist.c, Src/Zle/zle_refresh.c: character
+	arrays wrongly declared with ZLE_UNICODE_SUPPORT.
+
 	* 21592: Src/Zle/complist.c: attempt to browse a new directory
 	in menu selection caused crash.
 
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index 005e5540a..4290f5f6d 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -1865,7 +1865,7 @@ msearch(Cmatch **ptr, int ins, int back, int rep, int *wrapp)
 {
 #ifdef ZLE_UNICODE_SUPPORT
     /* MB_CUR_MAX may not be constant */
-    VARARR(char *, s, MB_CUR_MAX+1);
+    VARARR(char, s, MB_CUR_MAX+1);
 #else
     char s[2];
 #endif
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index da9fe45b7..92e76cb3c 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -1207,7 +1207,7 @@ singlerefresh(ZLE_STRING_T tmpline, int tmpll, int tmpcs)
 #ifdef ZLE_UNICODE_SUPPORT
     ZLE_STRING_T lpwbuf, lpwp;	/* converted lprompt and pointer */
     char *lpptr,		/* pointer into multibyte lprompt */
-	lpend;			/* end of multibyte lprompt */
+	*lpend;			/* end of multibyte lprompt */
     mbstate_t ps;		/* shift state */
 #endif