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
30913ff5
Commit
30913ff5
authored
Sep 30, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Don't write past buffer in strftime.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b22236d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
time.c
dlls/msvcrt/time.c
+4
-2
No files found.
dlls/msvcrt/time.c
View file @
30913ff5
...
...
@@ -1197,10 +1197,12 @@ static MSVCRT_size_t strftime_helper(char *str, MSVCRT_size_t max, const char *f
case
'T'
:
if
(
!
strftime_int
(
str
,
&
ret
,
max
,
mstm
->
tm_hour
,
alternate
?
0
:
2
,
0
,
23
))
return
0
;
str
[
ret
++
]
=
':'
;
if
(
ret
<
max
)
str
[
ret
++
]
=
':'
;
if
(
!
strftime_int
(
str
,
&
ret
,
max
,
mstm
->
tm_min
,
alternate
?
0
:
2
,
0
,
59
))
return
0
;
str
[
ret
++
]
=
':'
;
if
(
ret
<
max
)
str
[
ret
++
]
=
':'
;
if
(
!
strftime_int
(
str
,
&
ret
,
max
,
mstm
->
tm_sec
,
alternate
?
0
:
2
,
0
,
59
))
return
0
;
break
;
...
...
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