mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 17:36:20 +00:00
msvcrt: Use size_t for the size in wcsdup().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
bca9df8db2
commit
ee7794073b
|
@ -79,7 +79,7 @@ wchar_t* CDECL _wcsdup( const wchar_t* str )
|
|||
wchar_t* ret = NULL;
|
||||
if (str)
|
||||
{
|
||||
int size = (wcslen(str) + 1) * sizeof(wchar_t);
|
||||
size_t size = (wcslen(str) + 1) * sizeof(wchar_t);
|
||||
ret = malloc( size );
|
||||
if (ret) memcpy( ret, str, size );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue