diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2014-06-18 19:03:02 +0100 |
|---|---|---|
| committer | Charles Forsyth <charles.forsyth@gmail.com> | 2014-06-18 19:03:02 +0100 |
| commit | ee030d07b2cf167be70f1dc36f56bdf3012860ae (patch) | |
| tree | 77382e064b61f27c5060d0a2a6b7025e0c6e597c | |
| parent | 65d92bf32a3c774a6e0f693a756a8cd9a1f63737 (diff) | |
UTFmax is not 3
| -rw-r--r-- | os/port/devcons.c | 4 |
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; |
