Commit d75c4e63 authored by Laurent Aimar's avatar Laurent Aimar
Browse files

Fixed another bug in ToCharset I introduced.

Sorry for the noise, I won't touch it anymore...
parent e21ffabb
......@@ -440,7 +440,7 @@ void *ToCharset(const char *charset, const char *in, size_t *outsize)
if (vlc_iconv (hd, &inp, &inb, &outp, &outb) != (size_t)(-1))
*outsize = outlen - outb;
*outsize = outlen - mul - outb;
outb += mul;
inb = 1; /* append nul terminator if possible */
if (vlc_iconv (hd, &inp, &inb, &outp, &outb) != (size_t)(-1))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment