changeset: 2280:3a84d2ae4a64
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Feb 04 18:19:40 2008 -0500
summary: Fix iconv bug.
diff -r 04313209ce2b -r 3a84d2ae4a64 cmd/wmii/utf.c
--- a/cmd/wmii/utf.c Mon Feb 04 18:19:33 2008 -0500
+++ b/cmd/wmii/utf.c Mon Feb 04 18:19:40 2008 -0500
@@ -29,7 +29,7 @@ toutf8n(const char *str, size_t nstr) {
iconv(cd, nil, nil, nil, nil);
- bsize = nstr << 1;
+ bsize = (nstr+1) << 1;
buf = emalloc(bsize);
pos = buf;
nbuf = bsize-1;
Received on Tue Feb 05 2008 - 00:23:15 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:59:18 UTC