freebsd-ports/net-mgmt/kismet/files/patch-kis_panel_widgets.cc
2018-01-19 09:38:40 +00:00

12 lines
420 B
C++

--- kis_panel_widgets.cc.orig 2016-07-02 18:06:10 UTC
+++ 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, (char) 0 };
text.insert(inp_pos, ins);
inp_pos++;