Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

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



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





Messages sorted by: Reverse Date, Date, Thread, Author