fix UB with the function iscntrl()

From commit 6818e07291f3b2913e687c8ec3d3fe4711724050 by NRK, thanks

ref. https://git.suckless.org/dmenu/commit/e73651f12a406629778f02d8e5acbe2caec0dfc2.html
This commit is contained in:
bakkeby 2022-03-28 11:16:56 +02:00
parent a1796e627d
commit bcc157796d

View File

@ -1056,7 +1056,7 @@ keypress(XKeyEvent *ev)
switch(ksym) {
default:
insert:
if (!iscntrl(*buf))
if (!iscntrl((unsigned char)*buf))
insert(buf, len);
break;
case XK_Delete: