Vitaly Slobodin 2014-09-05 00:53:42 +04:00 committed by Ariya Hidayat
parent ab2e4788c6
commit 235d072db5
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ q_wgetenv(const wchar_t *varName)
// We have to employ a scratch buffer. Limiting the length to
// INT_MAX / sizeof(wchar_t), above, ensures that the multiplication
// here cannot overflow.
wchar_t *buffer = malloc(requiredSize * sizeof(wchar_t));
wchar_t *buffer = (wchar_t *)malloc(requiredSize * sizeof(wchar_t));
if (!buffer)
return QString();