~ubuntu-dev/ubuntu/lucid/mutt/lucid-201002110857

« back to all changes in this revision

Viewing changes to score.c

  • Committer: Bazaar Package Importer
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2009-06-17 17:17:28 UTC
  • mfrom: (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20090617171728-61dkl7w5fgn7ybdq
Tags: upstream-1.5.20
Import upstream version 1.5.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
    ptr->exact = 1;
117
117
    pc++;
118
118
  }
119
 
  ptr->val = atoi (pc);
 
119
  if (mutt_atoi (pc, &ptr->val) < 0)
 
120
  {
 
121
    FREE (&pattern);
 
122
    strfcpy (err->data, _("Error: score: invalid number"), err->dsize);
 
123
    return (-1);
 
124
  }
120
125
  set_option (OPTNEEDRESCORE);
121
126
  return 0;
122
127
}