summaryrefslogtreecommitdiffstats
path: root/lib/readkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readkey.c')
-rw-r--r--lib/readkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/readkey.c b/lib/readkey.c
index 2870a5a9fe..e72da0066b 100644
--- a/lib/readkey.c
+++ b/lib/readkey.c
@@ -51,8 +51,8 @@ static const struct esc_cmds esccmds[] = {
int read_key(void)
{
- char c;
- char esc[5];
+ unsigned char c;
+ unsigned char esc[5];
c = getchar();
if (c == 27) {