[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] LVM2/libdm/mm pool-debug.c



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac sourceware org	2011-02-28 19:54:30

Modified files:
	libdm/mm       : pool-debug.c 

Log message:
	Fix void pointer arithmetic warning in pool debug code

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/mm/pool-debug.c.diff?cvsroot=lvm2&r1=1.9&r2=1.10

--- LVM2/libdm/mm/pool-debug.c	2009/07/15 20:02:48	1.9
+++ LVM2/libdm/mm/pool-debug.c	2011/02/28 19:54:30	1.10
@@ -248,7 +248,7 @@
 	}
 	p->object = new;
 
-	memcpy(new->data + new_size - delta, extra, delta);
+	memcpy((char*)new->data + new_size - delta, extra, delta);
 
 	return 1;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]