X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=score.c;h=40dbd46ffe1ed687ba2a478b83ec9c131e5bd384;hp=20523b46193d25311261ca218e85b49e385eadfa;hb=4dc555afd969ac7aed5c50db80ff9df17ed39e47;hpb=c3e57678c8be193fc137854020f3a90887be97c9 diff --git a/score.c b/score.c index 20523b4..40dbd46 100644 --- a/score.c +++ b/score.c @@ -13,6 +13,10 @@ #include "mutt.h" #include "sort.h" + +#include "lib/mem.h" +#include "lib/intl.h" + #include #include @@ -74,7 +78,7 @@ int mutt_parse_score (BUFFER * buf, BUFFER * s, unsigned long data, /* look for an existing entry and update the value, else add it to the end of the list */ for (ptr = Score, last = NULL; ptr; last = ptr, ptr = ptr->next) - if (mutt_strcmp (pattern, ptr->str) == 0) + if (safe_strcmp (pattern, ptr->str) == 0) break; if (!ptr) { if ((pat = mutt_pattern_comp (pattern, 0, err)) == NULL) { @@ -131,7 +135,7 @@ int mutt_parse_unscore (BUFFER * buf, BUFFER * s, unsigned long data, while (MoreArgs (s)) { mutt_extract_token (buf, s, 0); - if (!mutt_strcmp ("*", buf->data)) { + if (!safe_strcmp ("*", buf->data)) { for (tmp = Score; tmp;) { last = tmp; tmp = tmp->next; @@ -142,7 +146,7 @@ int mutt_parse_unscore (BUFFER * buf, BUFFER * s, unsigned long data, } else { for (tmp = Score; tmp; last = tmp, tmp = tmp->next) { - if (!mutt_strcmp (buf->data, tmp->str)) { + if (!safe_strcmp (buf->data, tmp->str)) { if (last) last->next = tmp->next; else