From 30ce3b4c264c51c98f280e88e23792ff7deb2317 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Fri, 15 Oct 2021 09:03:04 +0200 Subject: New upstream version 3.1.1 --- Panel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Panel.c') diff --git a/Panel.c b/Panel.c index dea6401..a5773d5 100644 --- a/Panel.c +++ b/Panel.c @@ -1,7 +1,7 @@ /* htop - Panel.c (C) 2004-2011 Hisham H. Muhammad -Released under the GNU GPLv2, see the COPYING file +Released under the GNU GPLv2+, see the COPYING file in the source distribution for its full text. */ @@ -453,7 +453,7 @@ HandlerResult Panel_selectByTyping(Panel* this, int ch) { } if (len < 99) { - buffer[len] = ch; + buffer[len] = (char) ch; buffer[len + 1] = '\0'; } @@ -470,7 +470,7 @@ HandlerResult Panel_selectByTyping(Panel* this, int ch) { // if current word did not match, // retry considering the character the start of a new word. - buffer[0] = ch; + buffer[0] = (char) ch; buffer[1] = '\0'; } -- cgit v1.2.3