1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-16 11:20:54 +01:00

50049: care with signed characters

Some signed-to-unsigned casts needed for a couple of cases of pointers
used as indices.
This commit is contained in:
Peter Stephenson 2022-04-12 14:10:08 +01:00
parent 09ad15b986
commit c5a891a29d
3 changed files with 8 additions and 2 deletions

View file

@ -561,7 +561,7 @@ zexecve(char *pth, char **argv, char **newenvp)
isbinary = 1;
hasletter = 0;
for (ptr = execvebuf; ptr < ptr2; ptr++) {
if (islower(*ptr) || *ptr == '$' || *ptr == '`')
if (islower(STOUC(*ptr)) || *ptr == '$' || *ptr == '`')
hasletter = 1;
if (hasletter && *ptr == '\n') {
isbinary = 0;