summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-07-30 07:32:53 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-07-30 07:32:53 +0000
commitd00e8ca91f05facf540e5c96d87920ba4f692899 (patch)
treef3b5a35669220dae6edd2066563d10c4ecc350ed /usr.bin
parent14d4bd8b5cc93928037ccc62dcebd7c13ecf849e (diff)
Trim newline from ctime, from Thomas Adam.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/server-fn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-fn.c b/usr.bin/tmux/server-fn.c
index 3b99817d92b..8ecb56ae237 100644
--- a/usr.bin/tmux/server-fn.c
+++ b/usr.bin/tmux/server-fn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-fn.c,v 1.127 2020/07/04 14:24:02 nicm Exp $ */
+/* $OpenBSD: server-fn.c,v 1.128 2020/07/30 07:32:52 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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,