fix UB with the function iscntrl()

From commit 6818e07291f3b2913e687c8ec3d3fe4711724050 by NRK, thanks
main
Hiltjo Posthuma 2022-03-26 17:58:47 +01:00 committed by Chewing_Bever
parent 273d967324
commit d4b980b763
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 1 additions and 1 deletions

View File

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