fix UB with the function iscntrl()
From commit 6818e07291
by NRK, thanks
This commit is contained in:
2
dmenu.c
2
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:
|
||||
|
Reference in New Issue
Block a user