fix UB with the function iscntrl() - dmenu - dynamic menu
(HTM) git clone git://git.suckless.org/dmenu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e73651f12a406629778f02d8e5acbe2caec0dfc2
(DIR) parent 31fa07b9849b0ffbf4b7efb55943f466b3ff160f
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 26 Mar 2022 17:58:47 +0100
fix UB with the function iscntrl()
From commit 6818e07291f3b2913e687c8ec3d3fe4711724050 by NRK, thanks
Diffstat:
M dmenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/dmenu.c b/dmenu.c
@@ -415,7 +415,7 @@ keypress(XKeyEvent *ev)
switch(ksym) {
default:
insert:
- if (!iscntrl(*buf))
+ if (!iscntrl((unsigned char)*buf))
insert(buf, len);
break;
case XK_Delete: