aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-02-25 17:49:40 -0600
committerRob Landley <rob@landley.net>2016-02-25 17:49:40 -0600
commitfd6c94753f072df405126272a6d48d93dabe42a6 (patch)
tree009d0299695bb79d7a9cdf50f35d40530f08dc1b
parent3879cd97c16332db2edb225f0725b591c2fa14dc (diff)
downloadtoybox-fd6c94753f072df405126272a6d48d93dabe42a6.tar.gz
Typecast a printf argument because wchar_t isn't a rigidly defined size.
-rw-r--r--lib/linestack.c2
1 files changed, 1 insertions, 1 deletions
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<col) buf[col = width-columns] = 0;
if (out) fputs(buf, out);