--- src/usr.sbin/cron/lib/entry.c 2004/03/10 18:27:28 1.5 +++ src/usr.sbin/cron/lib/entry.c 2004/07/05 15:29:49 1.6 @@ -532,7 +532,7 @@ get_range(bitstr_t *bits, int low, int h * sent as a 0 since there is no offset either. */ ch = get_number(&num3, 0, PPC_NULL, ch, file); - if (ch == EOF) + if (ch == EOF || num3 == 0) return EOF; } else { /* no step. default==1. @@ -582,6 +582,8 @@ get_number(int *numptr, int low, char ** ch = get_char(file); } *pc = '\0'; + if (len == 0) + return EOF; /* try to find the name in the name list */