From 944177eec3b0659a95b8484eb73e27201bffd112 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 30 Jul 2020 07:32:52 +0000 Subject: [PATCH] Trim newline from ctime, from Thomas Adam. --- server-fn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server-fn.c b/server-fn.c index 84ec4123..d2465569 100644 --- a/server-fn.c +++ b/server-fn.c @@ -341,6 +341,7 @@ server_destroy_pane(struct window_pane *wp, int notify) time(&t); ctime_r(&t, tim); + tim[strcspn(tim, "\n")] = '\0'; if (WIFEXITED(wp->status)) { screen_write_nputs(&ctx, -1, &gc,