]> git.sur5r.net Git - openldap/commitdiff
use malloc not calloc
authorKurt Zeilenga <kurt@openldap.org>
Wed, 2 Jan 2002 17:00:21 +0000 (17:00 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 2 Jan 2002 17:00:21 +0000 (17:00 +0000)
servers/slapd/back-monitor/backmon.dsp
servers/slapd/back-monitor/init.c

index e403851d6fe4501b50e0829f196b3fb82c369790..0c4b76e2b132a26c68b48e7cba48380a4b832a35 100644 (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
index 1f4e848fc2ff77727abb1d740486551e9c4cf72d..9a36b0630e18d906669349d4f795cb0667d64aad 100644 (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,