[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c,1.6,1.7

cras at procontrol.fi cras at procontrol.fi
Thu Apr 29 00:41:58 EEST 2004


Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv13755/lib-index

Modified Files:
	mail-transaction-log.c 
Log Message:
fix



Index: mail-transaction-log.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- mail-transaction-log.c	28 Apr 2004 19:16:23 -0000	1.6
+++ mail-transaction-log.c	28 Apr 2004 21:41:56 -0000	1.7
@@ -576,7 +576,7 @@
 		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 */



More information about the dovecot-cvs mailing list