Commit 90714e7e authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix one warning for vlc_iconv() here (4th argument), but 2nd argument also...

Fix one warning for vlc_iconv() here (4th argument), but 2nd argument also issues a warning. What is more dangerous here is there is pointer arithmic done with psz_stringstart. This needs FIXING.
parent baae70f3
......@@ -2553,7 +2553,8 @@ static inline char *FixUTF8( char *p )
static char *EITConvertToUTF8( unsigned char *psz_instring, size_t i_length )
{
const char *psz_encoding;
unsigned char *psz_stringstart, *psz_outstring, *psz_tmp;
const unsigned char *psz_stringstart, *psz_outstring;
char *psz_tmp;
char psz_encbuf[12];
size_t i_in, i_out;
vlc_iconv_t iconv_handle;
......
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