Skip to content
Snippets Groups Projects
Commit 8b53a1f0 authored by Jong Hyuk Choi's avatar Jong Hyuk Choi
Browse files

malloc cleanup

parent 140b3392
Branches
Tags
No related merge requests found
......@@ -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" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment