From 8a3eefd1114612dcb29b08e046009ae71dc47821 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 18 Aug 1998 20:28:54 +0000 Subject: [PATCH] Changed calloc to ch_malloc. Don't need clear, should use ch_ functions. --- servers/slurpd/re.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slurpd/re.c b/servers/slurpd/re.c index f5168d8296..f0a60c8e9e 100644 --- a/servers/slurpd/re.c +++ b/servers/slurpd/re.c @@ -184,7 +184,7 @@ Re_parse( state |= GOT_TIME; break; case T_DN: - re->re_dn = calloc( 1, len + 1 ); + re->re_dn = ch_malloc( len + 1 ); memcpy( re->re_dn, value, len ); state |= GOT_DN; break; @@ -225,7 +225,7 @@ Re_parse( sizeof( Mi ) * ( nml + 2 )); re->re_mods[ nml ].mi_type = strdup( type ); if ( value != NULL ) { - re->re_mods[ nml ].mi_val = calloc( 1, len + 1 ); + re->re_mods[ nml ].mi_val = ch_malloc( len + 1 ); memcpy( re->re_mods[ nml ].mi_val, value, len ); re->re_mods[ nml ].mi_len = len; } else { -- 2.39.5