PATCH 3/3: is* classification functions take unsigned char

Mikael Magnusson <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <[email protected]>
I think we can only get non-ascii chars here if the terminal is actively
being malicious, but doesn't hurt to be correct.
---
 Src/Zle/termquery.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Src/Zle/termquery.c b/Src/Zle/termquery.c
index 9bbe226783..661cc2cd1c 100644
--- a/Src/Zle/termquery.c
+++ b/Src/Zle/termquery.c
@@ -593,7 +593,7 @@ base64_decode(const char *src, size_t len)
     unsigned int n;
     char *buf = hcalloc((3 * len) / 4 + 1);
     char *b = buf;
-    char c;
+    unsigned char c;
 
     while (len && (c = src[i]) != '=') {
 	n = isdigit(c) ? c - '0' + 52 :
-- 
2.38.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.