dovecot-2.2: lib-index: Added missing NUL separator to attribute...

dovecot at dovecot.org dovecot at dovecot.org
Sat Apr 6 20:44:48 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/edbfb39bc10d
changeset: 16215:edbfb39bc10d
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Apr 06 20:44:38 2013 +0300
description:
lib-index: Added missing NUL separator to attribute-update transaction log record.

diffstat:

 src/lib-index/mail-index-transaction-export.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r c24783148d78 -r edbfb39bc10d src/lib-index/mail-index-transaction-export.c
--- a/src/lib-index/mail-index-transaction-export.c	Fri Apr 05 21:57:11 2013 +0300
+++ b/src/lib-index/mail-index-transaction-export.c	Sat Apr 06 20:44:38 2013 +0300
@@ -394,6 +394,7 @@
 				  MAIL_TRANSACTION_HEADER_UPDATE);
 	}
 	if (t->attribute_updates != NULL) {
+		buffer_append_c(t->attribute_updates, '\0');
 		/* need to have 32bit alignment */
 		if (t->attribute_updates->used % 4 != 0) {
 			buffer_append_zero(t->attribute_updates,


More information about the dovecot-cvs mailing list