]> granicus.if.org Git - neomutt/commitdiff
fix: crash with short attachment name
authorPietro Cerutti <gahr@gahr.ch>
Wed, 23 Jan 2019 12:10:57 +0000 (12:10 +0000)
committerPietro Cerutti <gahr@gahr.ch>
Wed, 23 Jan 2019 12:10:57 +0000 (12:10 +0000)
ncrypt/crypt.c

index 2ea8fa09976e255d38cb36d39e803bea75bfa172..abcf83feb61883d41e48bec8261c01dd118e6c35 100644 (file)
@@ -637,7 +637,7 @@ int mutt_is_application_smime(struct Body *m)
 
   /* no .p7c, .p10 support yet. */
 
-  size_t len = mutt_str_strlen(t) - 4;
+  int len = mutt_str_strlen(t) - 4;
   if (len > 0 && *(t + len) == '.')
   {
     len++;