From 26f22dcb90cb96c51d3abd5143a3e1a78785b73f Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 4 Feb 2013 10:05:55 +0000 Subject: 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(-) (limited to 'usr.bin/join') diff --git a/usr.bin/join/join.c b/usr.bin/join/join.c index 97bb4cf..afa7cbc 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) -- cgit v1.1