[vlc-commits] commit: Fixed another bug in ToCharset I introduced.	(Laurent Aimar )
    git at videolan.org 
    git at videolan.org
       
    Wed Nov  3 23:51:09 CET 2010
    
    
  
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | 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))
    
    
More information about the vlc-commits
mailing list