Cast to unsigned char for ctype calls.

This commit is contained in:
Roy Marples
2008-04-17 10:19:58 +00:00
parent 57e1dd7389
commit f0aacec02e
6 changed files with 8 additions and 8 deletions

View File

@@ -190,7 +190,7 @@ static SCHEDULEITEM *parse_schedule_item(const char *string)
item->gotoitem = NULL;
if (strcmp(string,"forever") == 0)
item->type = SC_FOREVER;
else if (isdigit((int) string[0])) {
else if (isdigit((unsigned char)string[0])) {
item->type = SC_TIMEOUT;
errno = 0;
if (sscanf(string, "%d", &item->value) != 1)