Skip to content

Commit e27b65b

Browse files
jeriko-oneflatcap
authored andcommitted
imap_quote_string make room for quotes
1 parent 65d64a5 commit e27b65b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: imap/util.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -814,8 +814,8 @@ void imap_quote_string(char *dest, size_t dlen, const char *src, bool quote_back
814814
const char *s = src;
815815

816816
*pt++ = '"';
817-
/* save room for trailing quote-char */
818-
dlen -= 2;
817+
/* save room for quote-chars */
818+
dlen -= 3;
819819

820820
for (; *s && dlen; s++)
821821
{

0 commit comments

Comments
 (0)