while (*s) {
switch (*s) {
case '0': case '1': case '2': case '3': case '4':
- case '5': case '6': case '7': case '8': case '9':
+ case '5': case '6': case '7': case '8': case '9':
n = parse_int(&s, -offset, bufsiz);
buf[n+offset] = '*';
break;
}
char weekday[8] = {0};
-char dayofmonth[31] = {0};
-char month[12] = {0};
+char dayofmonth[32] = {0};
+char month[13] = {0};
char dayofyear[367] = {0};
char weekofyear[54] = {0};
char hour[24] = {0};
case 'm': parse(optarg, month, sizeof month, -1); break;
case 'w': parse(optarg, weekday, sizeof weekday, 0);
// special case: sunday is both 0 and 7.
- if (weekday[7] == '*')
+ if (weekday[7] == '*')
weekday[0] = '*';
break;
case 'n': nflag++; break;