mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix all bare malloc() realloc() etc calls to have a proper cast in front
This commit is contained in:
@@ -183,7 +183,7 @@ static wchar_t *AnsiToWide(const char *src)
|
||||
|
||||
len = strlen(src) + 1;
|
||||
/* copy */
|
||||
dest = malloc(len*sizeof(wchar_t));
|
||||
dest = (wchar_t*)malloc(len*sizeof(wchar_t));
|
||||
if (dest) mbstowcs(dest, src, len);
|
||||
return dest;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user