[dovecot-cvs] dovecot/src/lib buffer.c,1.19,1.20

cras at dovecot.org cras at dovecot.org
Fri Oct 8 19:59:48 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv9462/lib

Modified Files:
	buffer.c 
Log Message:
buffer_insert* were broken



Index: buffer.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/buffer.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- buffer.c	3 Oct 2004 16:30:18 -0000	1.19
+++ buffer.c	8 Oct 2004 16:59:45 -0000	1.20
@@ -200,7 +200,7 @@
 		return buffer_write(_buf, pos, data, data_size);
 
 	size = buffer_copy(_buf, pos + data_size, _buf, pos, (size_t)-1);
-	memcpy(buf->w_buffer + pos, data, size);
+	memcpy(buf->w_buffer + pos, data, data_size);
 	return size;
 }
 
@@ -253,7 +253,7 @@
 		return buffer_write_zero(_buf, pos, data_size);
 
 	size = buffer_copy(_buf, pos + data_size, _buf, pos, (size_t)-1);
-	memset(buf->w_buffer + pos, 0, size);
+	memset(buf->w_buffer + pos, 0, data_size);
 	return size;
 }
 



More information about the dovecot-cvs mailing list