From 3297ca7f3a3313e80e49547c857e1593286316b8 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 31 May 2020 14:53:10 -0700 Subject: minor changes --- sys/libn/bufio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/libn/bufio.c') diff --git a/sys/libn/bufio.c b/sys/libn/bufio.c index 0a3c419..aaced0e 100644 --- a/sys/libn/bufio.c +++ b/sys/libn/bufio.c @@ -35,7 +35,7 @@ static int refill(io·Buffer *buf) { - int n, d; + int n; if (buf->state & bufio·end) { return bufio·err; @@ -120,7 +120,7 @@ nextbyte: if (!utf8·fullrune(str, i)) goto nextbyte; - buf->runesize = utf8·chartorune(&r, str); + buf->runesize = utf8·bytetorune(&r, str); if (r == RuneErr && b == 1) { errorf("illegal UTF-8 sequence"); for (; i >= 0; i--) -- cgit v1.2.1