X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=from.c;h=33d6e849f3d3c8343a03a26524f57a7c8f02d5a3;hp=0aa67f519e89706ec30f94e85aae8a98efabf9e3;hb=74a2265af51ce89bca845adc1d68f273c9933c13;hpb=c3e57678c8be193fc137854020f3a90887be97c9 diff --git a/from.c b/from.c index 0aa67f5..33d6e84 100644 --- a/from.c +++ b/from.c @@ -13,6 +13,10 @@ #include "mutt.h" +#include "lib/mem.h" +#include "lib/intl.h" +#include "lib/str.h" + #include #include @@ -38,7 +42,7 @@ static int is_day_name (const char *s) { int i; - if ((strlen (s) < 3) || !*(s + 3) || !ISSPACE (*(s + 3))) + if ((mutt_strlen (s) < 3) || !*(s + 3) || !ISSPACE (*(s + 3))) return 0; for (i = 0; i < 7; i++) if (mutt_strncasecmp (s, Weekdays[i], 3) == 0)