mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Fix SAFEMEMCPY bug from revision 1.32 in idl_insert()
This commit is contained in:
parent
5bb08cba85
commit
5b6c6b5855
1 changed files with 2 additions and 2 deletions
|
|
@ -659,8 +659,8 @@ idl_insert( ID_BLOCK **idl, ID id, unsigned int maxids )
|
|||
}
|
||||
|
||||
/* make a slot for the new id */
|
||||
SAFEMEMCPY( &ID_BLOCK_ID(*idl, i), &ID_BLOCK_ID(*idl, i+1),
|
||||
ID_BLOCK_NIDS(*idl) - i );
|
||||
SAFEMEMCPY( &ID_BLOCK_ID(*idl, i+1), &ID_BLOCK_ID(*idl, i),
|
||||
(ID_BLOCK_NIDS(*idl) - i) * sizeof(ID) );
|
||||
|
||||
ID_BLOCK_ID(*idl, i) = id;
|
||||
ID_BLOCK_NIDS(*idl)++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue