Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4860fbe7
Commit
4860fbe7
authored
Mar 11, 2024
by
Brendan Shanks
Committed by
Alexandre Julliard
Mar 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Replace sprintf with snprintf to avoid deprecation warnings on macOS.
parent
5851ba86
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
schannel_gnutls.c
dlls/secur32/schannel_gnutls.c
+2
-2
No files found.
dlls/secur32/schannel_gnutls.c
View file @
4860fbe7
...
...
@@ -401,7 +401,7 @@ static void check_supported_protocols(
for
(
i
=
0
;
i
<
num_flags
;
i
++
)
{
s
printf
(
priority
,
"NORMAL:-%s"
,
flags
[
i
].
gnutls_flag
);
s
nprintf
(
priority
,
sizeof
(
priority
)
,
"NORMAL:-%s"
,
flags
[
i
].
gnutls_flag
);
err
=
pgnutls_priority_set_direct
(
session
,
priority
,
NULL
);
if
(
err
==
GNUTLS_E_SUCCESS
)
{
...
...
@@ -1022,7 +1022,7 @@ static NTSTATUS schan_get_cipher_info( void *args )
wcscat
(
info
->
szCipherSuite
,
widthW
);
wcscat
(
info
->
szCipherSuite
,
info
->
szCipher
);
wcscat
(
info
->
szCipherSuite
,
underscoreW
);
len
=
s
printf
(
buf
,
"%u"
,
(
unsigned
int
)
info
->
dwCipherLen
)
+
1
;
len
=
s
nprintf
(
buf
,
sizeof
(
buf
)
,
"%u"
,
(
unsigned
int
)
info
->
dwCipherLen
)
+
1
;
ptr
=
info
->
szCipherSuite
+
wcslen
(
info
->
szCipherSuite
);
ntdll_umbstowcs
(
buf
,
len
,
ptr
,
len
);
wcscat
(
info
->
szCipherSuite
,
underscoreW
);
...
...
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