X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=pgp.c;h=ed9a0c8496eaf6fb533b4ca7ea0c905a142f74de;hb=74a2265af51ce89bca845adc1d68f273c9933c13;hp=ecb6815403f758ab0666551ca206ade392c7b3ac;hpb=c3e57678c8be193fc137854020f3a90887be97c9;p=apps%2Fmadmutt.git diff --git a/pgp.c b/pgp.c index ecb6815..ed9a0c8 100644 --- a/pgp.c +++ b/pgp.c @@ -27,6 +27,10 @@ #include "mime.h" #include "copy.h" +#include "lib/mem.h" +#include "lib/intl.h" +#include "lib/str.h" + #include #include #include @@ -1006,7 +1010,7 @@ static short is_numerical_keyid (const char *s) /* or should we require the "0x"? */ if (strncmp (s, "0x", 2) == 0) s += 2; - if (strlen (s) % 8) + if (mutt_strlen (s) % 8) return 0; while (*s) if (strchr ("0123456789ABCDEFabcdef", *s++) == NULL)