mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
use malloc not calloc
This commit is contained in:
parent
38d800637f
commit
da6928b437
2 changed files with 1 additions and 5 deletions
|
|
@ -127,10 +127,6 @@ LIB32=link.exe -lib
|
|||
# Name "backmon - Win32 Single Release"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\abandon.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=".\back-monitor.h"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
|
|
|||
|
|
@ -306,7 +306,7 @@ monitor_back_db_init(
|
|||
}
|
||||
|
||||
dn.bv_len += sizeof( SLAPD_MONITOR_DN ); /* 1 for the , */
|
||||
dn.bv_val = ch_calloc( sizeof( char ), dn.bv_len + 1 );
|
||||
dn.bv_val = ch_malloc( dn.bv_len + 1 );
|
||||
strcpy( dn.bv_val , monitor_subsys[ i ].mss_rdn->bv_val );
|
||||
strcat( dn.bv_val, "," SLAPD_MONITOR_DN );
|
||||
rc = dnPrettyNormal( NULL, &dn, &monitor_subsys[ i ].mss_dn,
|
||||
|
|
|
|||
Loading…
Reference in a new issue