changeset 7289:589663d269de HEAD

array_clear() only truncates the array, growing its size later doesn't fill it with zero. Use buffer_reset() instead here which does zeroing.
author Timo Sirainen <tss@iki.fi>
date Mon, 25 Feb 2008 21:27:39 +0200
parents 0917df31efec
children 697000a67c42
files src/lib-storage/index/index-mail-headers.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail-headers.c	Mon Feb 25 21:22:05 2008 +0200
+++ b/src/lib-storage/index/index-mail-headers.c	Mon Feb 25 21:27:39 2008 +0200
@@ -215,7 +215,7 @@
 			  (HEADER_MATCH_SKIP_COUNT-1)) == 0);
 		if (mail->header_match_value == 0) {
 			/* wrapped, we'll have to clear the buffer */
-			array_clear(&mail->header_match);
+			buffer_reset(mail->header_match->arr.buffer);
 			mail->header_match_value = HEADER_MATCH_SKIP_COUNT;
 		}
 	}