fix all bare malloc() realloc() etc calls to have a proper cast in front

This commit is contained in:
Josh Coalson
2004-12-30 03:57:13 +00:00
parent f8ecddeb7d
commit 80171dc3ac
6 changed files with 9 additions and 9 deletions

View File

@@ -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;
}