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
8738b038
Commit
8738b038
authored
Aug 30, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Increase buffer size to silence a gcc warning.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9944b97a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
encode.c
dlls/crypt32/encode.c
+6
-6
No files found.
dlls/crypt32/encode.c
View file @
8738b038
...
@@ -3534,11 +3534,11 @@ static BOOL WINAPI CRYPT_AsnEncodeUtcTime(DWORD dwCertEncodingType,
...
@@ -3534,11 +3534,11 @@ static BOOL WINAPI CRYPT_AsnEncodeUtcTime(DWORD dwCertEncodingType,
__TRY
__TRY
{
{
SYSTEMTIME
sysTime
;
SYSTEMTIME
sysTime
;
/* sorry, magic number: enough for tag, len, YYMMDDHHMMSSZ
\0
. I use a
/* sorry, magic number: enough for tag, len, YYMMDDHHMMSSZ. I use a
* temporary buffer because the output buffer is not NULL-terminated.
* temporary buffer because the output buffer is not NULL-terminated.
*/
*/
char
buf
[
16
]
;
static
const
DWORD
bytesNeeded
=
15
;
static
const
DWORD
bytesNeeded
=
sizeof
(
buf
)
-
1
;
char
buf
[
40
]
;
if
(
!
pbEncoded
)
if
(
!
pbEncoded
)
{
{
...
@@ -3591,11 +3591,11 @@ static BOOL CRYPT_AsnEncodeGeneralizedTime(DWORD dwCertEncodingType,
...
@@ -3591,11 +3591,11 @@ static BOOL CRYPT_AsnEncodeGeneralizedTime(DWORD dwCertEncodingType,
__TRY
__TRY
{
{
SYSTEMTIME
sysTime
;
SYSTEMTIME
sysTime
;
/* sorry, magic number: enough for tag, len, YYYYMMDDHHMMSSZ
\0
. I use a
/* sorry, magic number: enough for tag, len, YYYYMMDDHHMMSSZ. I use a
* temporary buffer because the output buffer is not NULL-terminated.
* temporary buffer because the output buffer is not NULL-terminated.
*/
*/
char
buf
[
18
]
;
static
const
DWORD
bytesNeeded
=
17
;
static
const
DWORD
bytesNeeded
=
sizeof
(
buf
)
-
1
;
char
buf
[
40
]
;
if
(
!
pbEncoded
)
if
(
!
pbEncoded
)
{
{
...
...
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