Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-03-31 00:03:29 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2018-04-01 14:04:11 +0300
commit78ee8fc3e457452a6cdd25802b85f45b064bb845 (patch)
tree22f3e3f7be290e9f94880305c08104b33313e89b
parent08cbe510dd779106c03e0699dac9c8d0347cec6b (diff)
ash: fix "char == CTLfoo" comparison signedness bug
It usually does not bite since bbox forces -funsigned-char build. But for some reason void linux people disabled that. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/ash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 699b6c0ee..881af034d 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -7318,13 +7318,13 @@ hasmeta(const char *p)
p = strpbrk(p, chars);
if (!p)
break;
- switch ((unsigned char) *p) {
+ switch ((unsigned char)*p) {
case CTLQUOTEMARK:
for (;;) {
p++;
- if (*p == CTLQUOTEMARK)
+ if ((unsigned char)*p == CTLQUOTEMARK)
break;
- if (*p == CTLESC)
+ if ((unsigned char)*p == CTLESC)
p++;
if (*p == '\0') /* huh? */
return 0;