From ee030d07b2cf167be70f1dc36f56bdf3012860ae Mon Sep 17 00:00:00 2001 From: Charles Forsyth Date: Wed, 18 Jun 2014 19:03:02 +0100 Subject: UTFmax is not 3 --- os/port/devcons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os') diff --git a/os/port/devcons.c b/os/port/devcons.c index 28f4558f..ae945e66 100644 --- a/os/port/devcons.c +++ b/os/port/devcons.c @@ -487,7 +487,7 @@ isdbgkey(Rune r) else ctrlt = 0; if(echoctrlt){ - char buf[3]; + char buf[UTFmax]; buf[0] = 0x14; while(--echoctrlt >= 0){ @@ -555,7 +555,7 @@ int kbdputc(Queue *q, int ch) { int n; - char buf[3]; + char buf[UTFmax]; Rune r; static Rune kc[15]; static int nk, collecting = 0; -- cgit v1.2.3