tterm: make term_read() 8-bit safe - neatvi - [fork] simple vi-type editor with UTF-8 support
(HTM) git clone git://src.adamsgaard.dk/neatvi
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 67179ba66d7f2fd7b943722af8ae12c8a6486297
(DIR) parent 4ee7fa4c339feedbcca65be80cc546bda8c39dd8
(HTM) Author: Christian Neukirchen <chneukirchen@gmail.com>
Date: Wed, 17 Jun 2015 22:36:41 +0430
tterm: make term_read() 8-bit safe
Diffstat:
M term.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/term.c b/term.c
t@@ -145,7 +145,7 @@ char *term_cmd(int *n)
int term_read(void)
{
struct pollfd ufds[1];
- char n, c;
+ int n, c;
if (ibuf_pos >= ibuf_cnt) {
ufds[0].fd = 0;
ufds[0].events = POLLIN;