aboutsummaryrefslogtreecommitdiffstats
path: root/src/apoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apoint.c')
-rw-r--r--src/apoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apoint.c b/src/apoint.c
index c485477..d200cf3 100644
--- a/src/apoint.c
+++ b/src/apoint.c
@@ -137,7 +137,7 @@ void apoint_sec2str(struct apoint *o, long day, char *start, char *end)
snprintf(start, HRMIN_SIZE, "%02u:%02u", lt.tm_hour,
lt.tm_min);
}
- if (o->start + o->dur > day + DAYINSEC) {
+ if (o->start + o->dur > day + DAYLEN(day)) {
strncpy(end, "..:..", 6);
} else {
t = o->start + o->dur;