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:
parent
09ad15b986
commit
c5a891a29d
3 changed files with 8 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue