diff options
author | 2017-01-12 15:36:35 +0000 | |
---|---|---|
committer | 2017-01-12 15:36:35 +0000 | |
commit | a12989f14b8bb5424453188b1a9caa36d5893d1b (patch) | |
tree | fc7a285954cea2d1e1e783dde096589909e801c6 /usr.bin/tmux/tmux.c | |
parent | Don't write configuration request replies outside of the packet (diff) | |
download | wireguard-openbsd-a12989f14b8bb5424453188b1a9caa36d5893d1b.tar.xz wireguard-openbsd-a12989f14b8bb5424453188b1a9caa36d5893d1b.zip |
Simplify appending to string options.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r-- | usr.bin/tmux/tmux.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index eb0091045ed..5fd1225a999 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.173 2016/12/09 21:39:27 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.174 2017/01/12 15:36:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -295,7 +295,8 @@ main(int argc, char **argv) global_s_options = options_create(NULL); options_table_populate_tree(OPTIONS_TABLE_SESSION, global_s_options); - options_set_string(global_s_options, "default-shell", "%s", getshell()); + options_set_string(global_s_options, "default-shell", 0, "%s", + getshell()); global_w_options = options_create(NULL); options_table_populate_tree(OPTIONS_TABLE_WINDOW, global_w_options); |