From: Timo Sirainen Date: Thu, 7 Oct 2021 00:37:29 +0000 (+0300) Subject: lib-index: test-mail-index-write - Fix initializing map.hdr_copy_buf X-Git-Tag: 2.3.18~229 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1bf116c7a6088319c99094a2903f495111456b5e;p=thirdparty%2Fdovecot%2Fcore.git lib-index: test-mail-index-write - Fix initializing map.hdr_copy_buf --- diff --git a/src/lib-index/test-mail-index-write.c b/src/lib-index/test-mail-index-write.c index 1b95424140..88eaa4a07e 100644 --- a/src/lib-index/test-mail-index-write.c +++ b/src/lib-index/test-mail-index-write.c @@ -99,7 +99,7 @@ static void test_mail_index_write(void) .hdr_copy_buf = &hdr_copy, .rec_map = &rec_map, }; - buffer_create_from_data(&hdr_copy, &map.hdr, sizeof(&map.hdr)); + buffer_create_from_const_data(&hdr_copy, &map.hdr, sizeof(map.hdr)); struct mail_index index = { .event = event_create(NULL), .log = &log,