1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix void pointer arithmetic warning in pool debug code

This commit is contained in:
Zdenek Kabelac 2011-02-28 19:54:30 +00:00
parent 36653e8903
commit 9afafc7a3c

View File

@ -248,7 +248,7 @@ int dm_pool_grow_object(struct dm_pool *p, const void *extra, size_t delta)
}
p->object = new;
memcpy(new->data + new_size - delta, extra, delta);
memcpy((char*)new->data + new_size - delta, extra, delta);
return 1;
}