X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/19304f7c526fbe36ba0db2fb80bcaf3bd974d81d..ca40f83caf2f8bd15856f2afed6c59b538f4df6a:/score.c?ds=sidebyside diff --git a/score.c b/score.c index 5e8dfe1..b8a1f6c 100644 --- a/score.c +++ b/score.c @@ -116,7 +116,12 @@ int mutt_parse_score (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err) 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; }