mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 15:55:40 +00:00
Cast isblank argument to unsigned char.
This commit is contained in:
@@ -161,7 +161,7 @@ sudo_parseln(FILE *fp)
|
|||||||
len = strlen(buf);
|
len = strlen(buf);
|
||||||
while (len > 0 && isspace((unsigned char)buf[len - 1]))
|
while (len > 0 && isspace((unsigned char)buf[len - 1]))
|
||||||
buf[--len] = '\0';
|
buf[--len] = '\0';
|
||||||
for (cp = buf; isblank(*cp); cp++)
|
for (cp = buf; isblank((unsigned char)*cp); cp++)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
return(cp);
|
return(cp);
|
||||||
|
@@ -669,13 +669,13 @@ store_list(char *str, struct sudo_defs_types *def, int op)
|
|||||||
end = str;
|
end = str;
|
||||||
do {
|
do {
|
||||||
/* Remove leading blanks, if nothing but blanks we are done. */
|
/* Remove leading blanks, if nothing but blanks we are done. */
|
||||||
for (start = end; isblank(*start); start++)
|
for (start = end; isblank((unsigned char)*start); start++)
|
||||||
;
|
;
|
||||||
if (*start == '\0')
|
if (*start == '\0')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Find end position and perform operation. */
|
/* Find end position and perform operation. */
|
||||||
for (end = start; *end && !isblank(*end); end++)
|
for (end = start; *end && !isblank((unsigned char)*end); end++)
|
||||||
;
|
;
|
||||||
list_op(start, end - start, def, op == '-' ? delete : add);
|
list_op(start, end - start, def, op == '-' ? delete : add);
|
||||||
} while (*end++ != '\0');
|
} while (*end++ != '\0');
|
||||||
|
Reference in New Issue
Block a user