tterm: make term_read() 8-bit safe - neatvi - [fork] simple vi-type editor with… | |
git clone git://src.adamsgaard.dk/neatvi | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 67179ba66d7f2fd7b943722af8ae12c8a6486297 | |
parent 4ee7fa4c339feedbcca65be80cc546bda8c39dd8 | |
Author: Christian Neukirchen <[email protected]> | |
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(-) | |
--- | |
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; |