Skip to content

Commit

Permalink
Fix bogus pointer math.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Hayes committed Dec 10, 2009
1 parent b80acad commit 8cd186d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcutils/mspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8cd186d

Please sign in to comment.