diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-03-26 17:58:47 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-03-26 17:58:47 +0100 |
commit | e73651f12a406629778f02d8e5acbe2caec0dfc2 (patch) | |
tree | e7b4e62adddac8569651dd90948a206dd971c24f | |
parent | 31fa07b9849b0ffbf4b7efb55943f466b3ff160f (diff) |
fix UB with the function iscntrl()
From commit 6818e07291f3b2913e687c8ec3d3fe4711724050 by NRK, thanks
-rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -415,7 +415,7 @@ keypress(XKeyEvent *ev) | |||
415 | switch(ksym) { | 415 | switch(ksym) { |
416 | default: | 416 | default: |
417 | insert: | 417 | insert: |
418 | if (!iscntrl(*buf)) | 418 | if (!iscntrl((unsigned char)*buf)) |
419 | insert(buf, len); | 419 | insert(buf, len); |
420 | break; | 420 | break; |
421 | case XK_Delete: | 421 | case XK_Delete: |