mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Don't do pointer arithmetic on void pointers.
This commit is contained in:
parent
3961effec9
commit
6d3d9fe027
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ sl_mem_detach(
|
|||
)
|
||||
{
|
||||
struct slab_heap *sh = memctx;
|
||||
int size = sh->h_end - sh->h_base;
|
||||
int size = (char *) sh->h_end - (char *) sh->h_base;
|
||||
|
||||
sh->h_base = ch_realloc( sh->h_base, size );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue