fix integer overflow of tm_year in __secs_to_tm
commitbc1e7731cee963e422575f81048792f4d5db9641
authorDaniel Sabogal <dsabogal@ufl.edu>
Thu, 3 Nov 2016 02:29:36 +0000 (2 22:29 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 7 Nov 2016 18:00:54 +0000 (7 13:00 -0500)
tree8433b8861dad5d43307ef5000e150a8a594a1a47
parent5ffe515ca485c8e6e57cd5acda6bc6008f85660c
fix integer overflow of tm_year in __secs_to_tm

the overflow check for years+100 did not account for the extra
year computed from the remaining months. instead, perform this
check after obtaining the final number of years.
src/time/__secs_to_tm.c