commit | 8cd186d9e0aac1b18e4c8b32e3d79beedb728ab3 | [log] [tgz] |
---|---|---|
author | Barry Hayes <bhayes@google.com> | Wed Dec 09 10:18:41 2009 -0800 |
committer | Barry Hayes <bhayes@google.com> | Thu Dec 10 13:26:00 2009 -0800 |
tree | a1436952d80297dc14a86519c06c714c012b2973 | |
parent | b80acad7d6daa5d4279131e47afeffddabe838f0 [diff] |
Fix bogus pointer math.
diff --git a/libcutils/mspace.c b/libcutils/mspace.c index 8fd5de7..2110b43 100644 --- a/libcutils/mspace.c +++ b/libcutils/mspace.c
@@ -179,7 +179,8 @@ /* 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;