Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
820b4643
Commit
820b4643
authored
Feb 20, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secstotimestr: use int32_t not to overflow if int exceeds 32-bits
parent
9d269c5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/vlc_mtime.h
include/vlc_mtime.h
+1
-1
src/misc/mtime.c
src/misc/mtime.c
+1
-1
No files found.
include/vlc_mtime.h
View file @
820b4643
...
@@ -58,7 +58,7 @@ VLC_EXPORT( char *, mstrtime, ( char *psz_buffer, mtime_t date ) );
...
@@ -58,7 +58,7 @@ VLC_EXPORT( char *, mstrtime, ( char *psz_buffer, mtime_t date ) );
VLC_EXPORT
(
mtime_t
,
mdate
,
(
void
)
);
VLC_EXPORT
(
mtime_t
,
mdate
,
(
void
)
);
VLC_EXPORT
(
void
,
mwait
,
(
mtime_t
date
)
);
VLC_EXPORT
(
void
,
mwait
,
(
mtime_t
date
)
);
VLC_EXPORT
(
void
,
msleep
,
(
mtime_t
delay
)
);
VLC_EXPORT
(
void
,
msleep
,
(
mtime_t
delay
)
);
VLC_EXPORT
(
char
*
,
secstotimestr
,
(
char
*
psz_buffer
,
int
secs
)
);
VLC_EXPORT
(
char
*
,
secstotimestr
,
(
char
*
psz_buffer
,
int
32_t
secs
)
);
# define VLC_HARD_MIN_SLEEP 10000
/* 10 milliseconds = 1 tick at 100Hz */
# define VLC_HARD_MIN_SLEEP 10000
/* 10 milliseconds = 1 tick at 100Hz */
...
...
src/misc/mtime.c
View file @
820b4643
...
@@ -125,7 +125,7 @@ char *mstrtime( char *psz_buffer, mtime_t date )
...
@@ -125,7 +125,7 @@ char *mstrtime( char *psz_buffer, mtime_t date )
* \param psz_buffer should be a buffer at least MSTRTIME_MAX_SIZE characters
* \param psz_buffer should be a buffer at least MSTRTIME_MAX_SIZE characters
* \return psz_buffer is returned so this can be used as printf parameter.
* \return psz_buffer is returned so this can be used as printf parameter.
*/
*/
char
*
secstotimestr
(
char
*
psz_buffer
,
int
i_seconds
)
char
*
secstotimestr
(
char
*
psz_buffer
,
int
32_t
i_seconds
)
{
{
div_t
d
;
div_t
d
;
...
...
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