From: Vincent Lefevre Date: Tue, 20 Sep 2005 23:41:21 +0000 (+0000) Subject: Slight improvement on dgc's warning fix in edge cases. X-Git-Tag: mutt-1-5-12-rel~358 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1009b3333d82a5f10769120fee93c3c125ed6160;p=mutt Slight improvement on dgc's warning fix in edge cases. --- diff --git a/muttlib.c b/muttlib.c index 5009932a..56f0f179 100644 --- a/muttlib.c +++ b/muttlib.c @@ -1588,7 +1588,7 @@ int mutt_match_spam_list (const char *s, SPAM_LIST *l, char *text, int x) if (*p == '%') { n = atoi(++p); /* find pmatch index */ - while (isdigit((int)*p)) + while (isdigit((unsigned char)*p)) ++p; /* skip subst token */ for (i = pmatch[n].rm_so; (i < pmatch[n].rm_eo) && (tlen < x); i++) text[tlen++] = s[i];