diff options
author | 2019-03-14 23:14:27 +0000 | |
---|---|---|
committer | 2019-03-14 23:14:27 +0000 | |
commit | a7d9196c0eb95f9e9ed312d77e46a1d9cd381d6d (patch) | |
tree | c17a2af4a79d510ef355860e8b571103c67d4323 /usr.bin/tmux/server-client.c | |
parent | Remove some unnecessary temporary variables and be much less strict (diff) | |
download | wireguard-openbsd-a7d9196c0eb95f9e9ed312d77e46a1d9cd381d6d.tar.xz wireguard-openbsd-a7d9196c0eb95f9e9ed312d77e46a1d9cd381d6d.zip |
Store the time in the format tree rather than passing it around.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r-- | usr.bin/tmux/server-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index 0940234c032..45d856cd6a9 100644 --- a/usr.bin/tmux/server-client.c +++ b/usr.bin/tmux/server-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.268 2019/03/14 21:27:26 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.269 2019/03/14 23:14:27 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1537,7 +1537,7 @@ server_client_set_title(struct client *c) ft = format_create(c, NULL, FORMAT_NONE, 0); format_defaults(ft, c, NULL, NULL, NULL); - title = format_expand_time(ft, template, 0); + title = format_expand_time(ft, template); if (c->title == NULL || strcmp(title, c->title) != 0) { free(c->title); c->title = xstrdup(title); |