commit 9f87cf8cc5bfb5a13363f36d255c255121c0fc15 parent 0fe6adab27babce535fb2c7200e01f0ff7b49a2f Author: Kris Maglione <jg@suckless.org> Date: Mon, 4 Feb 2008 18:19:40 -0500 Fix iconv bug. Diffstat:
| cmd/wmii/utf.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/wmii/utf.c b/cmd/wmii/utf.c @@ -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;