Changed calloc to ch_malloc. Don't need clear, should use ch_ functions.

This commit is contained in:
Kurt Zeilenga 1998-08-18 20:28:54 +00:00
parent 3eb609ab21
commit 8a3eefd111

View File

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