mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
* libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.
This commit is contained in:
parent
b84aabf695
commit
c9e60624d3
@ -1,3 +1,7 @@
|
||||
2011-08-24 Corinna Vinschen <vinschen@redhat.com>
|
||||
|
||||
* libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.
|
||||
|
||||
2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index".
|
||||
|
@ -182,7 +182,7 @@ _DEFUN (_mktm_r, (tim_p, res, is_gmtime),
|
||||
{
|
||||
res->tm_mon = 11;
|
||||
res->tm_year -= 1;
|
||||
res->tm_yday = 365 + isleap(res->tm_year);
|
||||
res->tm_yday = 364 + isleap(res->tm_year);
|
||||
}
|
||||
res->tm_mday = ip[res->tm_mon];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user