fix UB with the function iscntrl()
e73651f1
From commit 6818e07291f3b2913e687c8ec3d3fe4711724050 by NRK, thanks
1 file(s) · +1 −1
From commit 6818e07291f3b2913e687c8ec3d3fe4711724050 by NRK, thanks
| 415 | 415 | switch(ksym) { |
|
| 416 | 416 | default: |
|
| 417 | 417 | insert: |
|
| 418 | - | if (!iscntrl(*buf)) |
|
| 418 | + | if (!iscntrl((unsigned char)*buf)) |
|
| 419 | 419 | insert(buf, len); |
|
| 420 | 420 | break; |
|
| 421 | 421 | case XK_Delete: |