diff options
author | David Hows <howsdav@gmail.com> | 2016-01-12 12:10:29 +1100 |
---|---|---|
committer | David Hows <howsdav@gmail.com> | 2016-01-12 12:10:29 +1100 |
commit | 69292923efe0e13e71aec3ba1cbcee11d650cd42 (patch) | |
tree | 2c7840aa51a28ca2ffc1491da68ff9ebcf35dc7b /bench | |
parent | 34ba6f3a0af40c5d7c94da2920a4915259c7d6de (diff) | |
download | mongo-69292923efe0e13e71aec3ba1cbcee11d650cd42.tar.gz |
WT-2305 - Change how config dump filename is setup
Diffstat (limited to 'bench')
-rw-r--r-- | bench/wtperf/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/wtperf/config.c b/bench/wtperf/config.c index f8c571eb1c3..2df368d9f7b 100644 --- a/bench/wtperf/config.c +++ b/bench/wtperf/config.c @@ -736,8 +736,8 @@ config_to_file(CONFIG *cfg) fp = NULL; /* Backup the config */ - req_len = strlen(cfg->home) + 14; - if ((path = calloc(req_len + 1, 1)) == NULL) { + req_len = strlen(cfg->home) + strlen("/CONFIG.wtperf") + 1; + if ((path = calloc(req_len, 1)) == NULL) { (void)enomem(cfg); goto err; } |