}
jr = obstack_alloc(&tab_o, sizeof(job_rec));
- if (!strncmp ("@monthly", periods, 7)) {
+ if (!strncmp ("@monthly", periods, 8)) {
jr->named_period = 1;
} else if (!strncmp("@yearly", periods, 7) || !strncmp("@annualy", periods, 8)) {
jr->named_period = 2;
- } else if (!strncmp ("@daily", periods, 7)) {
+ } else if (!strncmp ("@daily", periods, 6)) {
jr->named_period = 3;
} else if (!strncmp ("@weekly", periods, 7)) {
jr->named_period = 4;
/* Also skip it if MailCmd is set to "off" */
if (mailto && safe_p(usernm, mailto)
- && strncmp(MailCmd,"off",4) && !SyslogOutput) {
+ && strncmp(MailCmd,"off",3) && !SyslogOutput) {
char **env;
char mailcmd[MAX_COMMAND];
char hostname[MAXHOSTNAMELEN];