2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Cast isblank argument to unsigned char.

This commit is contained in:
Todd C. Miller
2010-09-16 10:39:08 -04:00
parent b51afe6249
commit 48d7c78330
2 changed files with 3 additions and 3 deletions

View File

@@ -669,13 +669,13 @@ store_list(char *str, struct sudo_defs_types *def, int op)
end = str;
do {
/* 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')
break;
/* 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);
} while (*end++ != '\0');