X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Ftime%2Fgmtime_r.c;h=fee01bd6ee866434df7c9efe13e21f1fd99572a2;hp=0272870d6e46eb49019239bc8cd938aae7d40f93;hb=HEAD;hpb=1cc81f5cb0df2b66a795ff0c26d7bbc4d16e13c6 diff --git a/src/time/gmtime_r.c b/src/time/gmtime_r.c index 0272870d..fee01bd6 100644 --- a/src/time/gmtime_r.c +++ b/src/time/gmtime_r.c @@ -5,7 +5,7 @@ struct tm *__gmtime_r(const time_t *restrict t, struct tm *restrict tm) { if (__secs_to_tm(*t, tm) < 0) { - errno = EINVAL; + errno = EOVERFLOW; return 0; } tm->tm_isdst = 0;