openbsd-ports/net/kismet/patches/patch-kis_panel_widgets_cc
2022-03-11 19:45:43 +00:00

15 lines
433 B
Plaintext

explicitly cast
Index: kis_panel_widgets.cc
--- kis_panel_widgets.cc.orig
+++ kis_panel_widgets.cc
@@ -2582,7 +2582,7 @@ int Kis_Single_Input::KeyPress(int in_key) {
// and if we have room, insert it and scroll to the right
if ((int) text.length() < max_len &&
filter_map.find(in_key) != filter_map.end()) {
- char ins[2] = { in_key, 0 };
+ char ins[2] = { (char)in_key, 0 };
text.insert(inp_pos, ins);
inp_pos++;