mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Don't do pointer arithmetic on void pointers.
This commit is contained in:
parent
3961effec9
commit
6d3d9fe027
@ -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 New Issue
Block a user