diff options
author | Russ Cox <russcox@gmail.com> | 2009-09-11 17:03:06 -0400 |
---|---|---|
committer | Russ Cox <russcox@gmail.com> | 2009-09-11 17:03:06 -0400 |
commit | 0cadb4301d18724e7513d7489cb5bebd262c82f1 (patch) | |
tree | 48209a4083885288eaa09178d4017769897107b3 /src/libbio | |
parent | 4dbf255619efac4f0a00e4216d6c999128910df2 (diff) | |
download | plan9port-0cadb4301d18724e7513d7489cb5bebd262c82f1.tar.gz plan9port-0cadb4301d18724e7513d7489cb5bebd262c82f1.tar.bz2 plan9port-0cadb4301d18724e7513d7489cb5bebd262c82f1.zip |
convert to 4-byte UTF-8 and 32-bit Rune
http://codereview.appspot.com/116075
Diffstat (limited to 'src/libbio')
-rw-r--r-- | src/libbio/bgetrune.c | 2 | ||||
-rw-r--r-- | src/libbio/bputrune.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; |