From 8cd186d9e0aac1b18e4c8b32e3d79beedb728ab3 Mon Sep 17 00:00:00 2001 From: Barry Hayes Date: Wed, 9 Dec 2009 10:18:41 -0800 Subject: Fix bogus pointer math. --- libcutils/mspace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcutils/mspace.c b/libcutils/mspace.c index 8fd5de77..2110b434 100644 --- a/libcutils/mspace.c +++ b/libcutils/mspace.c @@ -179,7 +179,8 @@ mspace create_contiguous_mspace_with_name(size_t starting_capacity, /* Create the mspace, pointing to the memory we just reserved. */ - m = create_mspace_with_base(base + sizeof(*cs), starting_capacity, locked); + m = create_mspace_with_base((char *)base + sizeof(*cs), starting_capacity, + locked); if (m == (mspace)0) goto error; -- cgit v1.2.3