diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-08-26 07:23:42 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-08-26 07:23:42 +0000 |
commit | 477215fe7db5277f44fe35c5a600597bbf957fa0 (patch) | |
tree | 77358b06e048efa31c09d09fc07519aa0335fbbe /newlib/libc | |
parent | 2691168e9847fd9b14b2bf4eaff597b6b19d593b (diff) | |
download | cygnal-477215fe7db5277f44fe35c5a600597bbf957fa0.tar.gz cygnal-477215fe7db5277f44fe35c5a600597bbf957fa0.tar.bz2 cygnal-477215fe7db5277f44fe35c5a600597bbf957fa0.zip |
* libc/time/mktm_r.c (_mktm_r): Fix previous fix.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/time/mktm_r.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/time/mktm_r.c b/newlib/libc/time/mktm_r.c index 9b9b411a5..c0ab2191a 100644 --- a/newlib/libc/time/mktm_r.c +++ b/newlib/libc/time/mktm_r.c @@ -182,7 +182,7 @@ _DEFUN (_mktm_r, (tim_p, res, is_gmtime), { res->tm_mon = 11; res->tm_year -= 1; - res->tm_yday = 364 + isleap(res->tm_year); + res->tm_yday = 364 + isleap(res->tm_year + 1900); } res->tm_mday = ip[res->tm_mon]; } @@ -254,4 +254,3 @@ _DEFUN (__tzcalc_limits, (year), return 1; } - |