472. [bug] Off-by-one error caused isc_time_add() to sometimes
produce invalid time values.
+ 472. [bug] Off-by-one error caused isc_time_add() to sometimes
+ produce invalid time values.
+
471. [bug] nsupdate didn't compile on HP/UX 10.20
--- 9.0.0 released ---
* SOFTWARE.
*/
-/* $Id: time.c,v 1.26 2000/06/22 21:58:50 tale Exp $ */
+/* $Id: time.c,v 1.26.2.1 2000/09/18 18:50:24 bwelling Exp $ */
#include <config.h>
result->seconds = t->seconds + i->seconds;
result->nanoseconds = t->nanoseconds + i->nanoseconds;
- if (result->nanoseconds > NS_PER_S) {
+ if (result->nanoseconds >= NS_PER_S) {
result->seconds++;
result->nanoseconds -= NS_PER_S;
}