Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2013 10:05:56 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246319 - head/usr.bin/join
Message-ID:  <201302041005.r14A5uKN083864@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Mon Feb  4 10:05:55 2013
New Revision: 246319
URL: http://svnweb.freebsd.org/changeset/base/246319

Log:
  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.

Modified:
  head/usr.bin/join/join.c

Modified: head/usr.bin/join/join.c
==============================================================================
--- head/usr.bin/join/join.c	Mon Feb  4 09:48:50 2013	(r246318)
+++ head/usr.bin/join/join.c	Mon Feb  4 10:05:55 2013	(r246319)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302041005.r14A5uKN083864>