Module: wine Branch: master Commit: ee7794073b31fccf8f69f6f813781b406fcbdf1e URL: https://gitlab.winehq.org/wine/wine/-/commit/ee7794073b31fccf8f69f6f813781b4...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Thu Sep 1 13:11:57 2022 +0300
msvcrt: Use size_t for the size in wcsdup().
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com
---
dlls/msvcrt/wcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c index a438449342e..6942ecf3534 100644 --- a/dlls/msvcrt/wcs.c +++ b/dlls/msvcrt/wcs.c @@ -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 ); }