field doesn't go negative.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7800
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Apr 11 22:15:44 1996 Theodore Y. Ts'o <tytso@dcl>
+
+ * ustime.c (krb5_us_timeofday): When doing the time offset
+ adjustments, make sure the microseconds field doesn't go
+ negative.
+
Thu Mar 28 17:20:12 1996 Theodore Y. Ts'o <tytso@dcl>
* DNR.c: Replace eight-year-old version of this file with the
usec -= 1000000;
sec++;
}
+ if (usec < 0) {
+ usec += 1000000;
+ sec--;
+ }
sec += os_ctx->time_offset;
}
*seconds = sec;