From 1d3a73aaea1adb457ea79d18bbc6fca712dc7a52 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Sun, 13 Dec 2009 21:16:10 +0100
Subject: [PATCH] Adjusted to changes in Dovecot buffer API (patch by Pascal
 Volk).

---
 src/lib-sieve/sieve-binary.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib-sieve/sieve-binary.c b/src/lib-sieve/sieve-binary.c
index 3ec625ef7..7880952c1 100644
--- a/src/lib-sieve/sieve-binary.c
+++ b/src/lib-sieve/sieve-binary.c
@@ -918,7 +918,7 @@ static const void *_file_lazy_load_data
 static buffer_t *_file_lazy_load_buffer
 (struct sieve_binary_file *file, off_t *offset, size_t size)
 {			
-	buffer_t *buffer = buffer_create_static_hard(file->pool, size);
+	buffer_t *buffer = buffer_create_dynamic(file->pool, size);
 	
 	if ( _file_lazy_read
 		(file, offset, buffer_get_space_unsafe(buffer, 0, size), size) ) {
-- 
GitLab