mirror of
https://github.com/sheumann/hush.git
synced 2024-12-23 20:29:42 +00:00
Make char unsigned, as busybox is designed for (and as ORCA/C does)
This commit is contained in:
parent
a00ca4770f
commit
e61b4040ec
2
build
2
build
@ -1,4 +1,4 @@
|
|||||||
cc -std=c99 \
|
cc -std=c99 -funsigned-char \
|
||||||
-Wall -Wno-format-security -Wno-comment -o hush \
|
-Wall -Wno-format-security -Wno-comment -o hush \
|
||||||
-Iinclude -include include/autoconf.h \
|
-Iinclude -include include/autoconf.h \
|
||||||
-Dhush_main=main -DNDEBUG -D"BB_VER=KBUILD_STR(1.22.1)" -D"KBUILD_STR(s)=#s" \
|
-Dhush_main=main -DNDEBUG -D"BB_VER=KBUILD_STR(1.22.1)" -D"KBUILD_STR(s)=#s" \
|
||||||
|
@ -5322,7 +5322,7 @@ static NOINLINE int expand_vars_to_list(o_string *output, int n, char *arg)
|
|||||||
} else
|
} else
|
||||||
/* If EXP_FLAG_SINGLEWORD, we handle assignment 'a=....$@.....'
|
/* If EXP_FLAG_SINGLEWORD, we handle assignment 'a=....$@.....'
|
||||||
* and in this case should treat it like '$*' - see 'else...' below */
|
* and in this case should treat it like '$*' - see 'else...' below */
|
||||||
if ((unsigned char)first_ch == ('@'|0x80) /* quoted $@ */
|
if (first_ch == ('@'|0x80) /* quoted $@ */
|
||||||
&& !(output->o_expflags & EXP_FLAG_SINGLEWORD) /* not v="$@" case */
|
&& !(output->o_expflags & EXP_FLAG_SINGLEWORD) /* not v="$@" case */
|
||||||
) {
|
) {
|
||||||
while (1) {
|
while (1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user