diff options
author | andrew <andrew@FreeBSD.org> | 2013-02-04 10:05:55 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2013-02-04 10:05:55 +0000 |
commit | 26f22dcb90cb96c51d3abd5143a3e1a78785b73f (patch) | |
tree | c4e5bcee6d336bfdcd70c50866745bca1b0c3f90 /usr.bin/join | |
parent | 3da6055c2c175fe1a290484838d43ab5804536ae (diff) | |
download | FreeBSD-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.c | 2 |
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) |