Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8cd186d9 authored by Barry Hayes's avatar Barry Hayes
Browse files

Fix bogus pointer math.

parent b80acad7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;