use malloc not calloc

This commit is contained in:
Kurt Zeilenga 2002-01-02 17:00:21 +00:00
parent 38d800637f
commit da6928b437
2 changed files with 1 additions and 5 deletions

View file

@ -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

View 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,