From 2ea2b3360f0ffb79872ce7b6c53bfb6bf368df94 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Mon, 22 Jun 2009 16:11:34 +0000 Subject: MFC 181922: %b and %p may contain multibyte characters. Noticed by: nyan --- usr.bin/w/pr_time.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/w/pr_time.c b/usr.bin/w/pr_time.c index 5ac060de4bcc..9fe0b11df8b2 100644 --- a/usr.bin/w/pr_time.c +++ b/usr.bin/w/pr_time.c @@ -44,6 +44,7 @@ static const char sccsid[] = "@(#)pr_time.c 8.2 (Berkeley) 4/4/94"; #include #include +#include #include "extern.h" @@ -82,7 +83,7 @@ pr_attime(time_t *started, time_t *now) } (void)strftime(buf, sizeof(buf), fmt, &tp); - (void)printf("%-7.7s", buf); + (void)wprintf(L"%-7.7s", buf); } /* -- cgit v1.3