]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fix
authorTimo Sirainen <tss@iki.fi>
Wed, 28 Apr 2004 21:41:56 +0000 (00:41 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 28 Apr 2004 21:41:56 +0000 (00:41 +0300)
--HG--
branch : HEAD

src/lib-index/mail-transaction-log.c

index 1a0710b920509b80e1636c7a8f6e32f0e780ca45..5ce6ac68a4d65c340ce0156c3c3e175f770776cd 100644 (file)
@@ -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 */