X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftime%2Fgmtime_r.c;fp=src%2Ftime%2Fgmtime_r.c;h=fee01bd6ee866434df7c9efe13e21f1fd99572a2;hb=ea81c0624f0213430ae8fb959e30373eeaaf391c;hp=0272870d6e46eb49019239bc8cd938aae7d40f93;hpb=ac1bf93fc634274c14d234c44b2e846a93a5cc95;p=musl 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;