Piotr Caban : ntdll: Use SIZE_T to store passed buffer size in sprintf.
Alexandre Julliard
julliard at winehq.org
Wed Oct 30 18:40:11 CDT 2019
Module: wine
Branch: master
Commit: 92731ccbbe7681b10c40cd69d2cbb12c95ca211f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=92731ccbbe7681b10c40cd69d2cbb12c95ca211f
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Oct 30 12:16:20 2019 +0100
ntdll: Use SIZE_T to store passed buffer size in sprintf.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/printf.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/ntdll/printf.c b/dlls/ntdll/printf.c
index 018f774dc0..4176f945f5 100644
--- a/dlls/ntdll/printf.c
+++ b/dlls/ntdll/printf.c
@@ -43,8 +43,8 @@ static const SIZE_T size_max = ~(SIZE_T)0 >> 1;
typedef struct pf_output_t
{
- int used;
- int len;
+ SIZE_T used;
+ SIZE_T len;
BOOL unicode;
union {
LPWSTR W;
@@ -68,7 +68,7 @@ typedef struct pf_flags_t
*/
static inline int pf_output_stringW( pf_output *out, LPCWSTR str, int len )
{
- int space = out->len - out->used;
+ SIZE_T space = out->len - out->used;
if( len < 0 )
len = strlenW( str );
@@ -122,7 +122,7 @@ static inline int pf_output_stringW( pf_output *out, LPCWSTR str, int len )
static inline int pf_output_stringA( pf_output *out, LPCSTR str, int len )
{
- int space = out->len - out->used;
+ SIZE_T space = out->len - out->used;
if( len < 0 )
len = strlen( str );
More information about the wine-cvs
mailing list