Commit d0bfc8ca authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

leap years were off by one

parent 4d7d5071
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: rdata.c,v 1.46 1999/05/18 17:46:59 bwelling Exp $ */
/* $Id: rdata.c,v 1.47 1999/05/27 18:03:40 gson Exp $ */
#include <config.h>
......@@ -1009,7 +1009,7 @@ time_totext(unsigned long value, isc_buffer_t *target) {
tm.tm_year = 70;
while ((secs = year_secs(tm.tm_year + 1900 + 1)) <= t) {
while ((secs = year_secs(tm.tm_year + 1900)) <= t) {
t -= secs;
tm.tm_year++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment