summaryrefslogtreecommitdiff
path: root/sys/src/libbio
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-12-31 21:09:46 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2012-12-31 21:09:46 +0100
commit6cadd03bbeace1c256ba875c2e6a877f924877cd (patch)
tree8079ea6f6ccdb1c2cbb2b7813f618837617cb33e /sys/src/libbio
parent6d99096136278f06f6333f927da34105a8dfe0bf (diff)
fix utf and rune handling in preparation for 32bit runes
Diffstat (limited to 'sys/src/libbio')
-rw-r--r--sys/src/libbio/bgetrune.c2
-rw-r--r--sys/src/libbio/bputrune.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/libbio/bgetrune.c b/sys/src/libbio/bgetrune.c
index 3ba90384e..467b1ba4a 100644
--- a/sys/src/libbio/bgetrune.c
+++ b/sys/src/libbio/bgetrune.c
@@ -7,7 +7,7 @@ Bgetrune(Biobufhdr *bp)
{
int c, i;
Rune rune;
- char str[4];
+ char str[UTFmax];
c = Bgetc(bp);
if(c < Runeself) { /* one char */
diff --git a/sys/src/libbio/bputrune.c b/sys/src/libbio/bputrune.c
index 2a625bd9a..efc4672e6 100644
--- a/sys/src/libbio/bputrune.c
+++ b/sys/src/libbio/bputrune.c
@@ -6,7 +6,7 @@ int
Bputrune(Biobufhdr *bp, long c)
{
Rune rune;
- char str[4];
+ char str[UTFmax];
int n;
rune = c;