diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-10-01 23:24:39 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-10-01 23:24:39 +0100 |
commit | 884a21d0f5b5b5b1d19a84b3e2f40a42a0b6105c (patch) | |
tree | 0e2f67776c72ca8c619ff72c417757d90e3c781e | |
parent | 21bca549d35b3d0b4ff1f22f66e5e108c103ac4b (diff) | |
download | rtmux-884a21d0f5b5b5b1d19a84b3e2f40a42a0b6105c.tar.gz rtmux-884a21d0f5b5b5b1d19a84b3e2f40a42a0b6105c.tar.bz2 rtmux-884a21d0f5b5b5b1d19a84b3e2f40a42a0b6105c.zip |
First period not last for host_short, from Michael Scholz.
-rw-r--r-- | format.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |