From: RĂ©mi Denis-Courmont Date: Tue, 16 Dec 2008 18:12:00 +0000 (+0200) Subject: C++-proofing X-Git-Tag: 1.0.0-pre1~1753 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=01b080ab11dc0d5fd8e52eb4152d08fd66a83f7f;p=vlc C++-proofing --- diff --git a/include/vlc_charset.h b/include/vlc_charset.h index d181d15006..ddd50df83d 100644 --- a/include/vlc_charset.h +++ b/include/vlc_charset.h @@ -86,7 +86,7 @@ static inline char *FromWide (const wchar_t *wide) */ static inline char *FromLatin1 (const char *latin) { - char *str = malloc (2 * strlen (latin) + 1), *utf8 = str; + char *str = (char *)malloc (2 * strlen (latin) + 1), *utf8 = str; unsigned char c; if (str == NULL) @@ -104,7 +104,7 @@ static inline char *FromLatin1 (const char *latin) } *(utf8++) = '\0'; - utf8 = realloc (str, utf8 - str); + utf8 = (char *)realloc (str, utf8 - str); return utf8 ? utf8 : str; }