From 6241e9d545520defd6ceb5db4de55042927967d6 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 26 Dec 2011 19:07:41 +0100 Subject: [PATCH] w: indicate unknown host when -f is used The option -f used too print `-' to FROM column when host was not known. This commit changes behaviour back to what it was earlier. Signed-off-by: Sami Kerola --- w.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/w.c b/w.c index 3964e4f2..e3e9dbb0 100644 --- a/w.c +++ b/w.c @@ -78,6 +78,8 @@ static void print_host(const char *restrict host, int len, const int fromlen) fputc(*host, stdout); ++width; } else { + fputc('-', stdout); + ++width; break; } }