projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix error code on time conversion overflows
[musl]
/
src
/
time
/
timegm.c
diff --git
a/src/time/timegm.c
b/src/time/timegm.c
index
7148fca
..
e7a7939
100644
(file)
--- a/
src/time/timegm.c
+++ b/
src/time/timegm.c
@@
-7,7
+7,7
@@
time_t timegm(struct tm *tm)
struct tm new;
long long t = __tm_to_secs(tm);
if (__secs_to_tm(t, &new) < 0) {
struct tm new;
long long t = __tm_to_secs(tm);
if (__secs_to_tm(t, &new) < 0) {
- errno = E
INVAL
;
+ errno = E
OVERFLOW
;
return -1;
}
*tm = new;
return -1;
}
*tm = new;