diff options
author | Rob Landley <rob@landley.net> | 2021-05-15 11:14:03 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-05-15 11:14:03 -0500 |
commit | d3025b14b9c13286b79f256d019a99da9425ea0e (patch) | |
tree | 02a40c59346677cb5f6a51137f4a39d16ae6b743 /toys/posix/expand.c | |
parent | 08481ee37ad5070ff1033d57351c3fa456d0729d (diff) | |
download | toybox-d3025b14b9c13286b79f256d019a99da9425ea0e.tar.gz |
Convert utf8towc from wchar_t to unsigned (to match wctoutf8).
The maximum unicode code point is 0x10ffff which is 21 bits.
Diffstat (limited to 'toys/posix/expand.c')
-rw-r--r-- | toys/posix/expand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/expand.c b/toys/posix/expand.c index f3cd44d0..e15d30d3 100644 --- a/toys/posix/expand.c +++ b/toys/posix/expand.c @@ -43,7 +43,7 @@ static void do_expand(int fd, char *name) } if (!len) break; for (i=0; i<len; i++) { - wchar_t blah; + unsigned blah; int width = utf8towc(&blah, toybuf+i, len-i); char c; |