Fix iconv bug.

This commit is contained in:
Kris Maglione 2008-02-04 18:19:40 -05:00
parent 0fe6adab27
commit 9f87cf8cc5

View File

@ -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;