diff options
Diffstat (limited to 'sys/libn/bufio.c')
-rw-r--r-- | sys/libn/bufio.c | 4 |
1 files changed, 2 insertions, 2 deletions
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--) |