aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis-cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vis-cmds.c b/vis-cmds.c
index 181321e..f5221d1 100644
--- a/vis-cmds.c
+++ b/vis-cmds.c
@@ -619,9 +619,10 @@ static bool cmd_earlier_later(Vis *vis, Win *win, Command *cmd, const char *argv
}
}
+ struct tm tm;
time_t state = text_state(txt);
char buf[32];
- strftime(buf, sizeof buf, "State from %H:%M", localtime(&state));
+ strftime(buf, sizeof buf, "State from %H:%M", localtime_r(&state, &tm));
vis_info_show(vis, "%s", buf);
return pos != EPOS;