diff options
author | Rob Landley <rob@landley.net> | 2016-02-25 17:49:40 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-02-25 17:49:40 -0600 |
commit | fd6c94753f072df405126272a6d48d93dabe42a6 (patch) | |
tree | 009d0299695bb79d7a9cdf50f35d40530f08dc1b /lib | |
parent | 3879cd97c16332db2edb225f0725b591c2fa14dc (diff) | |
download | toybox-fd6c94753f072df405126272a6d48d93dabe42a6.tar.gz |
Typecast a printf argument because wchar_t isn't a rigidly defined size.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/linestack.c | 2 |
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); |