From 7680286456098693f8f069af746a828e020e1180 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 22 Nov 2018 23:03:00 +0000 Subject: [PATCH] Fix need_advance so it can't run off the end. --- clunk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clunk.c b/clunk.c index 0f0df9e..2012b4b 100644 --- a/clunk.c +++ b/clunk.c @@ -192,7 +192,7 @@ need_adjust(struct tm const *now) printf("diff = %ld\n", diff); if (diff < 30 || diff >= maxadvance) return STOP; if (diff < 60) return TICK; - if (diff < (10 * 3600)) return ADVANCE; + return ADVANCE; } static void -- 2.30.2