[dovecot-cvs] dovecot/src/lib mempool-system-clean.c,1.1,1.2

tss at dovecot.org tss at dovecot.org
Thu Mar 22 00:34:15 EET 2007


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

Modified Files:
	mempool-system-clean.c 
Log Message:
Crashfix for systems without malloc_usable_size()



Index: mempool-system-clean.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/mempool-system-clean.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- mempool-system-clean.c	18 Mar 2007 01:57:11 -0000	1.1
+++ mempool-system-clean.c	21 Mar 2007 22:34:12 -0000	1.2
@@ -98,7 +98,7 @@
 	{
 		size_t *saved_size = mem;
 
-		*saved_size = size;
+		*saved_size = size - sizeof(size_t);
 		mem = saved_size + 1;
 	}
 #endif



More information about the dovecot-cvs mailing list