Skip to content
Permalink
Browse files Browse the repository at this point in the history
imap_quote_string make room for quotes
  • Loading branch information
jeriko-one authored and flatcap committed Jul 7, 2018
1 parent 65d64a5 commit e27b65b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imap/util.c
Expand Up @@ -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++)
{
Expand Down

0 comments on commit e27b65b

Please sign in to comment.