vlc | branch: master | Laurent Aimar <[email protected]> | Wed Nov 3 23:49:43 2010 +0100| [d75c4e630888618544774af075e9b89c54e66178] | committer: Laurent Aimar
Fixed another bug in ToCharset I introduced. Sorry for the noise, I won't touch it anymore... > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d75c4e630888618544774af075e9b89c54e66178 --- src/text/unicode.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/text/unicode.c b/src/text/unicode.c index a8e58a5..9745cf2 100644 --- a/src/text/unicode.c +++ b/src/text/unicode.c @@ -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)) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
