diff options
author | 2013-10-10 12:04:01 +0000 | |
---|---|---|
committer | 2013-10-10 12:04:01 +0000 | |
commit | b9c6dbc7f5c1da25054cab3491aa72cd56f06e7a (patch) | |
tree | 00a059c50472d5019b33f3e72e6958425a445550 | |
parent | layout-resize-pane-mouse: Consider visible panes only (diff) | |
download | wireguard-openbsd-b9c6dbc7f5c1da25054cab3491aa72cd56f06e7a.tar.xz wireguard-openbsd-b9c6dbc7f5c1da25054cab3491aa72cd56f06e7a.zip |
First period not last for host_short, from Michael Scholz.
-rw-r--r-- | usr.bin/tmux/format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c index 045fc1b0751..fecca07ab5d 100644 --- a/usr.bin/tmux/format.c +++ b/usr.bin/tmux/format.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.32 2013/10/10 11:56:50 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.33 2013/10/10 12:04:01 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicm@users.sourceforge.net> @@ -121,7 +121,7 @@ format_create(void) if (gethostname(host, sizeof host) == 0) { format_add(ft, "host", "%s", host); - if ((ptr = strrchr(host, '.')) != NULL) + if ((ptr = strchr(host, '.')) != NULL) *ptr = '\0'; format_add(ft, "host_short", "%s", host); } |