1
0
Fork 0

fix UB with the function iscntrl()

From commit 6818e07291 by NRK, thanks
This commit is contained in:
Hiltjo Posthuma 2022-03-26 17:58:47 +01:00
parent 31fa07b984
commit e73651f12a

View file

@ -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: