From da6928b4377717757de72cbd995f1075fac7901c Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 2 Jan 2002 17:00:21 +0000 Subject: [PATCH] use malloc not calloc --- servers/slapd/back-monitor/backmon.dsp | 4 ---- servers/slapd/back-monitor/init.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/servers/slapd/back-monitor/backmon.dsp b/servers/slapd/back-monitor/backmon.dsp index e403851d6f..0c4b76e2b1 100644 --- a/servers/slapd/back-monitor/backmon.dsp +++ b/servers/slapd/back-monitor/backmon.dsp @@ -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 diff --git a/servers/slapd/back-monitor/init.c b/servers/slapd/back-monitor/init.c index 1f4e848fc2..9a36b0630e 100644 --- a/servers/slapd/back-monitor/init.c +++ b/servers/slapd/back-monitor/init.c @@ -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, -- 2.39.5