1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

* time/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,

convert T2, not T.
	* time/Makefile (tests): Add tst-mktime3.
	* time/tst-mktime3.c: New test.

2004-12-01  Jakub Jelinek  <jakub@redhat.com>
This commit is contained in:
Roland McGrath
2004-12-02 22:16:35 +00:00
parent 469dcb0d46
commit b78ad5fd49
4 changed files with 61 additions and 2 deletions

View File

@ -463,8 +463,9 @@ __mktime_internal (struct tm *tp,
t2 = t1 + sec_adjustment;
if (((t1 < t) != (sec_requested < 0))
| ((t2 < t1) != (sec_adjustment < 0))
| ! (*convert) (&t, &tm))
| ! (*convert) (&t2, &tm))
return -1;
t = t2;
}
*tp = tm;