Rocco Rutte:
[apps/madmutt.git] / mutt_ssl.c
index f124b99..5196e48 100644 (file)
 #include "mutt_curses.h"
 #include "mutt_ssl.h"
 
+#include "lib/mem.h"
+#include "lib/intl.h"
+#include "lib/str.h"
+
 #if OPENSSL_VERSION_NUMBER >= 0x00904000L
 #define READ_X509_KEY(fp, key) PEM_read_X509(fp, key, NULL, NULL)
 #else
@@ -369,7 +373,7 @@ static char *x509_get_part (char *line, const char *ndx)
 
   c = strstr (line, ndx);
   if (c) {
-    c += mutt_strlen (ndx);
+    c += safe_strlen (ndx);
     c2 = strchr (c, '/');
     if (c2)
       *c2 = '\0';