mirror of https://github.com/0intro/wmii
Fix iconv bug.
This commit is contained in:
parent
0fe6adab27
commit
9f87cf8cc5
|
@ -29,7 +29,7 @@ toutf8n(const char *str, size_t nstr) {
|
||||||
|
|
||||||
iconv(cd, nil, nil, nil, nil);
|
iconv(cd, nil, nil, nil, nil);
|
||||||
|
|
||||||
bsize = nstr << 1;
|
bsize = (nstr+1) << 1;
|
||||||
buf = emalloc(bsize);
|
buf = emalloc(bsize);
|
||||||
pos = buf;
|
pos = buf;
|
||||||
nbuf = bsize-1;
|
nbuf = bsize-1;
|
||||||
|
|
Loading…
Reference in New Issue