Commit: acd96a07ccc1703c0b3aea86caac428265c99699
Parent: 93345cd8ca6513263f54c6a21c8666020171d9b0
Author: Hiltjo Posthuma
Date: Sat, 26 Mar 2022 17:58:47 +0100
fix UB with the function iscntrl()
From commit 6818e07291f3b2913e687c8ec3d3fe4711724050 by NRK, thanks
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c
@@ -524,7 +524,7 @@ keypress_pin(XKeyEvent *ev, KeySym ksym, char* buf, int len) {
return 1;
break;
default:
- if (!iscntrl(*buf))
+ if (!iscntrl((unsigned char)*buf))
insert(buf, len);
}