X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=pgppubring.c;h=577db1ac22b614274249a7f187f031c0042e8abc;hb=fd64f718a3d2c9ea13aac19f48b6b03bcf502118;hp=b1c59ff9532319d07f076d5c136de4a36247349a;hpb=c3e57678c8be193fc137854020f3a90887be97c9;p=apps%2Fmadmutt.git diff --git a/pgppubring.c b/pgppubring.c index b1c59ff..577db1a 100644 --- a/pgppubring.c +++ b/pgppubring.c @@ -26,6 +26,9 @@ # include "config.h" #endif +#include "lib/mem.h" +#include "lib/str.h" + #include #include #include @@ -740,7 +743,7 @@ static void pgpring_find_candidates (char *ringfile, const char *hints[], char *error_buf; size_t error_buf_len; - error_buf_len = sizeof ("fopen: ") - 1 + strlen (ringfile) + 1; + error_buf_len = sizeof ("fopen: ") - 1 + mutt_strlen (ringfile) + 1; error_buf = safe_malloc (error_buf_len); snprintf (error_buf, error_buf_len, "fopen: %s", ringfile); perror (error_buf);