We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a60d78 commit 524310cCopy full SHA for 524310c
lib/email/vcard.cpp
@@ -400,7 +400,7 @@ static size_t vcard_serialize_string(char *pbuff,
400
pbuff[offset++] = '\\';
401
if (line_offset >= 0)
402
line_offset ++;
403
- } else if ('\r' == string[i] && '\n' == string[i + 1]) {
+ } else if ((string[i] == '\r' && string[i+1] == '\n') || string[i] == '\n') {
404
if (offset + 1 >= max_length)
405
return max_length;
406
0 commit comments