Skip to content
Snippets Groups Projects
Commit da6928b4 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

use malloc not calloc

parent 38d80063
Branches
Tags
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment