From: Timo Sirainen Date: Wed, 28 Apr 2004 21:41:56 +0000 (+0300) Subject: fix X-Git-Tag: 1.1.alpha1~4174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98fb9437058e007980df344e55c592105e7cf6df;p=thirdparty%2Fdovecot%2Fcore.git fix --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-transaction-log.c b/src/lib-index/mail-transaction-log.c index 1a0710b920..5ce6ac68a4 100644 --- a/src/lib-index/mail-transaction-log.c +++ b/src/lib-index/mail-transaction-log.c @@ -576,7 +576,7 @@ mail_transaction_log_file_read(struct mail_transaction_log_file *file, buffer_copy(file->buffer, size, file->buffer, 0, (size_t)-1); file->buffer_offset = offset; - data = buffer_get_modifyable_data(file->buffer, NULL); + data = buffer_get_space_unsafe(file->buffer, 0, size); ret = pread(file->fd, data, size, offset); if (ret < 0 && errno == ESTALE) { /* log file was deleted in NFS server, fail silently */