summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2009-06-22 16:11:34 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2009-06-22 16:11:34 +0000
commit2ea2b3360f0ffb79872ce7b6c53bfb6bf368df94 (patch)
tree80e176e145ca3fcff76a1b4763946c7c11ef705b /usr.bin
parent77f0aa3ec8a44cc67432ca82a7572c9c0cf4e0b7 (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/w/pr_time.c3
1 files changed, 2 insertions, 1 deletions
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 <stdio.h>
#include <string.h>
+#include <wchar.h>
#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);
}
/*