From 0cadb4301d18724e7513d7489cb5bebd262c82f1 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 11 Sep 2009 17:03:06 -0400 Subject: convert to 4-byte UTF-8 and 32-bit Rune http://codereview.appspot.com/116075 --- src/libbio/bgetrune.c | 2 +- src/libbio/bputrune.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libbio') diff --git a/src/libbio/bgetrune.c b/src/libbio/bgetrune.c index f1b065bc..46991e16 100644 --- a/src/libbio/bgetrune.c +++ b/src/libbio/bgetrune.c @@ -7,7 +7,7 @@ Bgetrune(Biobuf *bp) { int c, i; Rune rune; - char str[4]; + char str[UTFmax]; c = Bgetc(bp); if(c < Runeself) { /* one char */ diff --git a/src/libbio/bputrune.c b/src/libbio/bputrune.c index a2eaa83e..651ae7b7 100644 --- a/src/libbio/bputrune.c +++ b/src/libbio/bputrune.c @@ -6,7 +6,7 @@ int Bputrune(Biobuf *bp, long c) { Rune rune; - char str[4]; + char str[UTFmax]; int n; rune = c; -- cgit v1.2.3