From: Pietro Cerutti Date: Wed, 23 Jan 2019 12:10:57 +0000 (+0000) Subject: fix: crash with short attachment name X-Git-Tag: 2019-10-25~377 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=128488ffac0e84693126f227957cf76a06d34e23;p=neomutt fix: crash with short attachment name --- diff --git a/ncrypt/crypt.c b/ncrypt/crypt.c index 2ea8fa099..abcf83feb 100644 --- a/ncrypt/crypt.c +++ b/ncrypt/crypt.c @@ -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++;