From 26f22dcb90cb96c51d3abd5143a3e1a78785b73f Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 4 Feb 2013 10:05:55 +0000 Subject: [PATCH] Cast *tabchar, a wchar_t, to a wint_t as it is the type the %lc printf format string expects. This is only an issue on ARM EABI where wint_t is different to wchar_t. --- usr.bin/join/join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/join/join.c b/usr.bin/join/join.c index 97bb4cf2b8a9..afa7cbc9ffd2 100644 --- a/usr.bin/join/join.c +++ b/usr.bin/join/join.c @@ -516,7 +516,7 @@ static void outfield(LINE *lp, u_long fieldno, int out_empty) { if (needsep++) - (void)printf("%lc", *tabchar); + (void)printf("%lc", (wint_t)*tabchar); if (!ferror(stdout)) { if (lp->fieldcnt <= fieldno || out_empty) { if (empty != NULL)