From 01b080ab11dc0d5fd8e52eb4152d08fd66a83f7f Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 16 Dec 2008 20:12:00 +0200 Subject: [PATCH] C++-proofing --- include/vlc_charset.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5