From: David Lawrence Ramsey Date: Tue, 7 Dec 2004 05:02:21 +0000 (+0000) Subject: fix bad cast X-Git-Tag: v1.3.6~232 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=10820de4677e4383b5be619058d40be5936b72ff;p=nano.git fix bad cast git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2168 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/nano.c b/src/nano.c index 60cd7371..8764b627 100644 --- a/src/nano.c +++ b/src/nano.c @@ -3594,7 +3594,7 @@ void do_output(int *kbinput, size_t kbinput_len) } else { #endif key_len = 1; - key[0] = (char)kbinput[i]; + key[0] = (unsigned char)kbinput[i]; #ifdef NANO_WIDE } #endif