dovecot-2.2-pigeonhole: lib-sieve: Substituted inappropriate use...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Fri Jul 24 22:53:57 UTC 2015
details: http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/f8374f7c6e92
changeset: 2083:f8374f7c6e92
user: Stephan Bosch <stephan at rename-it.nl>
date: Sat Jul 25 00:53:51 2015 +0200
description:
lib-sieve: Substituted inappropriate use of str_append_n() with normal str_append().
diffstat:
src/lib-sieve/util/rfc2822.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (48 lines):
diff -r 4359d879bd1d -r f8374f7c6e92 src/lib-sieve/util/rfc2822.c
--- a/src/lib-sieve/util/rfc2822.c Fri Jul 24 23:54:25 2015 +0200
+++ b/src/lib-sieve/util/rfc2822.c Sat Jul 25 00:53:51 2015 +0200
@@ -134,7 +134,7 @@
/* Write header field name first */
str_append_n(header, name, line_len);
- str_append_n(header, ": ", 2);
+ str_append(header, ": ");
if ( body_offset_r != NULL )
*body_offset_r = str_len(header);
@@ -166,9 +166,9 @@
str_append_n(header, sp, nlp-sp);
if ( crlf )
- str_append_n(header, "\r\n", 2);
+ str_append(header, "\r\n");
else
- str_append_n(header, "\n", 1);
+ str_append(header, "\n");
if ( *bp != '\0' && (*bp == ' ' || *bp == '\t') ) {
/* Continued line; replace leading whitespace with single TAB */
@@ -187,9 +187,9 @@
wp++;
if ( crlf )
- str_append_n(header, "\r\n", 2);
+ str_append(header, "\r\n");
else
- str_append_n(header, "\n", 1);
+ str_append(header, "\n");
/* Insert single TAB instead of the original whitespace */
str_append_c(header, '\t');
@@ -207,9 +207,9 @@
if ( bp != sp || lines == 0 ) {
str_append_n(header, sp, bp-sp);
if ( crlf )
- str_append_n(header, "\r\n", 2);
+ str_append(header, "\r\n");
else
- str_append_n(header, "\n", 1);
+ str_append(header, "\n");
lines++;
}
More information about the dovecot-cvs
mailing list