fix UB with the function iscntrl()
From commit 6818e07291
by NRK, thanks
This commit is contained in:
parent
31fa07b984
commit
e73651f12a
1 changed files with 1 additions and 1 deletions
2
dmenu.c
2
dmenu.c
|
@ -415,7 +415,7 @@ keypress(XKeyEvent *ev)
|
||||||
switch(ksym) {
|
switch(ksym) {
|
||||||
default:
|
default:
|
||||||
insert:
|
insert:
|
||||||
if (!iscntrl(*buf))
|
if (!iscntrl((unsigned char)*buf))
|
||||||
insert(buf, len);
|
insert(buf, len);
|
||||||
break;
|
break;
|
||||||
case XK_Delete:
|
case XK_Delete:
|
||||||
|
|
Loading…
Reference in a new issue