summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2014-06-18 19:03:02 +0100
committerCharles Forsyth <charles.forsyth@gmail.com>2014-06-18 19:03:02 +0100
commitee030d07b2cf167be70f1dc36f56bdf3012860ae (patch)
tree77382e064b61f27c5060d0a2a6b7025e0c6e597c /os
parent65d92bf32a3c774a6e0f693a756a8cd9a1f63737 (diff)
UTFmax is not 3
Diffstat (limited to 'os')
-rw-r--r--os/port/devcons.c4
1 files changed, 2 insertions, 2 deletions
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;