diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-31 21:09:46 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-31 21:09:46 +0100 |
commit | 6cadd03bbeace1c256ba875c2e6a877f924877cd (patch) | |
tree | 8079ea6f6ccdb1c2cbb2b7813f618837617cb33e /sys/src/cmd/join.c | |
parent | 6d99096136278f06f6333f927da34105a8dfe0bf (diff) |
fix utf and rune handling in preparation for 32bit runes
Diffstat (limited to 'sys/src/cmd/join.c')
-rw-r--r-- | sys/src/cmd/join.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/join.c b/sys/src/cmd/join.c index 5a527a4d4..4c85b0886 100644 --- a/sys/src/cmd/join.c +++ b/sys/src/cmd/join.c @@ -286,7 +286,7 @@ output(int on1, int on2) /* print items from olist */ { int i; Rune *temp; - char buf[BUFSIZ]; + char buf[BUFSIZ*UTFmax+1]; if (no <= 0) { /* default case */ printf("%s", runetostr(buf, on1? ppi[F1][j1]: ppi[F2][j2])); |