summaryrefslogtreecommitdiffstats
path: root/usr.bin/join
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2013-02-04 10:05:55 +0000
committerandrew <andrew@FreeBSD.org>2013-02-04 10:05:55 +0000
commit26f22dcb90cb96c51d3abd5143a3e1a78785b73f (patch)
treec4e5bcee6d336bfdcd70c50866745bca1b0c3f90 /usr.bin/join
parent3da6055c2c175fe1a290484838d43ab5804536ae (diff)
downloadFreeBSD-src-26f22dcb90cb96c51d3abd5143a3e1a78785b73f.zip
FreeBSD-src-26f22dcb90cb96c51d3abd5143a3e1a78785b73f.tar.gz
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.
Diffstat (limited to 'usr.bin/join')
-rw-r--r--usr.bin/join/join.c2
1 files changed, 1 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud