From eb094067875ba06f182c7850d5592bd3c71cc56a Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 10 Aug 2005 13:21:15 +0000 Subject: 21593: character arrays wrongly declared with ZLE_UNICODE_SUPPORT --- Src/Zle/complist.c | 2 +- Src/Zle/zle_refresh.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Src') 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 -- cgit 1.4.1