From 35e4905f732e1d25c71c47be3dbd747bc28cf642 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 6 Apr 2013 20:44:38 +0300 Subject: [PATCH] lib-index: Added missing NUL separator to attribute-update transaction log record. --- src/lib-index/mail-index-transaction-export.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib-index/mail-index-transaction-export.c b/src/lib-index/mail-index-transaction-export.c index beaeb4a158..5c15c04201 100644 --- a/src/lib-index/mail-index-transaction-export.c +++ b/src/lib-index/mail-index-transaction-export.c @@ -394,6 +394,7 @@ void mail_index_transaction_export(struct mail_index_transaction *t, 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, -- 2.47.3