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>
This commit is contained in:
Denys Vlasenko 2018-03-30 23:03:29 +02:00
parent 60fb98e51d
commit ac61f44704

View File

@ -7443,9 +7443,9 @@ hasmeta(const 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;