From fd6c94753f072df405126272a6d48d93dabe42a6 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 25 Feb 2016 17:49:40 -0600 Subject: Typecast a printf argument because wchar_t isn't a rigidly defined size. --- lib/linestack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/linestack.c') diff --git a/lib/linestack.c b/lib/linestack.c index 241a437d..f8ca32a4 100644 --- a/lib/linestack.c +++ b/lib/linestack.c @@ -106,7 +106,7 @@ int crunch_str(char **str, int width, FILE *out, } else if (bytes<1) { bytes = 1; sprintf(buf, "<%02X>", *end); - } else sprintf(buf, "U+%04X", wc); + } else sprintf(buf, "U+%04X", (unsigned)wc); col = strlen(buf); if (width-columns