aboutsummaryrefslogtreecommitdiffstats
path: root/utils/openal-info.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-14 19:42:54 -0700
committerChris Robinson <[email protected]>2019-09-14 19:42:54 -0700
commit4b8f78a8d633e3f39e2b708184c051465fcfef7d (patch)
tree0f90c50f3630c5dbb6e188116cd58c8ca4181186 /utils/openal-info.c
parente82c43fb38f13ee3efdda2b7a1395b8182fceb1c (diff)
Fix a few more GCC warnings
Diffstat (limited to 'utils/openal-info.c')
-rw-r--r--utils/openal-info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/openal-info.c b/utils/openal-info.c
index cc628b6e..76cdf37d 100644
--- a/utils/openal-info.c
+++ b/utils/openal-info.c
@@ -53,7 +53,7 @@ static WCHAR *FromUTF8(const char *str)
if((len=MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0)) > 0)
{
- out = calloc(sizeof(WCHAR), len);
+ out = calloc(sizeof(WCHAR), (unsigned int)(len));
MultiByteToWideChar(CP_UTF8, 0, str, -1, out, len);
}
return out;