diff options
author | nicm <nicm> | 2020-07-30 07:32:52 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-07-30 07:32:52 +0000 |
commit | 944177eec3b0659a95b8484eb73e27201bffd112 (patch) | |
tree | b31bd3e78761507a93f943e2b726ba70b3c9a155 | |
parent | 40e65c511502fe47932e230290537e7391ab8a83 (diff) |
Trim newline from ctime, from Thomas Adam.
-rw-r--r-- | server-fn.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |