Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
92731ccb
Commit
92731ccb
authored
Oct 30, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use SIZE_T to store passed buffer size in sprintf.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
822e2773
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
printf.c
dlls/ntdll/printf.c
+4
-4
No files found.
dlls/ntdll/printf.c
View file @
92731ccb
...
@@ -43,8 +43,8 @@ static const SIZE_T size_max = ~(SIZE_T)0 >> 1;
...
@@ -43,8 +43,8 @@ static const SIZE_T size_max = ~(SIZE_T)0 >> 1;
typedef
struct
pf_output_t
typedef
struct
pf_output_t
{
{
int
used
;
SIZE_T
used
;
int
len
;
SIZE_T
len
;
BOOL
unicode
;
BOOL
unicode
;
union
{
union
{
LPWSTR
W
;
LPWSTR
W
;
...
@@ -68,7 +68,7 @@ typedef struct pf_flags_t
...
@@ -68,7 +68,7 @@ typedef struct pf_flags_t
*/
*/
static
inline
int
pf_output_stringW
(
pf_output
*
out
,
LPCWSTR
str
,
int
len
)
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
)
if
(
len
<
0
)
len
=
strlenW
(
str
);
len
=
strlenW
(
str
);
...
@@ -122,7 +122,7 @@ static inline int pf_output_stringW( pf_output *out, LPCWSTR str, int len )
...
@@ -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
)
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
)
if
(
len
<
0
)
len
=
strlen
(
str
);
len
=
strlen
(
str
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment