From: JerikoOne Date: Sat, 7 Jul 2018 20:35:56 +0000 (-0500) Subject: imap_quote_string make room for quotes X-Git-Tag: neomutt-20180716~3^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e27b65b3bf8defa34db58919496056caf3850cd4;p=neomutt imap_quote_string make room for quotes --- diff --git a/imap/util.c b/imap/util.c index 57802b254..fccfdbf45 100644 --- a/imap/util.c +++ b/imap/util.c @@ -814,8 +814,8 @@ void imap_quote_string(char *dest, size_t dlen, const char *src, bool quote_back const char *s = src; *pt++ = '"'; - /* save room for trailing quote-char */ - dlen -= 2; + /* save room for quote-chars */ + dlen -= 3; for (; *s && dlen; s++) {