malloc cleanup

This commit is contained in:
Jong Hyuk Choi 2005-04-08 19:39:58 +00:00
parent 140b33927f
commit 8b53a1f0bb

View file

@ -263,7 +263,7 @@ bdb_cf_gen(ConfigArgs *c)
/* See if a DB_CONFIG file already exists here */
bdb->bi_db_config_path = ch_malloc( strlen( bdb->bi_dbenv_home ) +
STRLENOF(LDAP_DIRSEP) + STRLENOF("DB_CONFIG"));
STRLENOF(LDAP_DIRSEP) + STRLENOF("DB_CONFIG") + 1 );
ptr = lutil_strcopy( bdb->bi_db_config_path, bdb->bi_dbenv_home );
*ptr++ = LDAP_DIRSEP[0];
strcpy( ptr, "DB_CONFIG" );