struct score_t *next;
} SCORE;
-SCORE *Score = NULL;
+static SCORE *Score = NULL;
void mutt_check_rescore (CONTEXT *ctx)
{
ptr->exact = 1;
pc++;
}
- ptr->val = atoi (pc);
+ if (mutt_atoi (pc, &ptr->val) < 0)
+ {
+ FREE (&pattern);
+ strfcpy (err->data, _("Error: score: invalid number"), err->dsize);
+ return (-1);
+ }
set_option (OPTNEEDRESCORE);
return 0;
}