diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2016-08-02 10:47:41 +1000 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-08-02 10:47:41 +1000 |
commit | d943d94a70e33037476b8ea5952728e163a5b814 (patch) | |
tree | 3a34af222631e45c43b51abf71d612e6cbc58ab5 | |
parent | 844169cfd4ccef7cbcca7789a4ca1854f2ebae5c (diff) | |
download | mongo-d943d94a70e33037476b8ea5952728e163a5b814.tar.gz |
WT-2806 Off-by-one allocation in wtperf. (#2923)
-rw-r--r-- | bench/wtperf/wtperf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c index 5fae54ed5cf..58271106d61 100644 --- a/bench/wtperf/wtperf.c +++ b/bench/wtperf/wtperf.c @@ -1869,7 +1869,7 @@ create_uris(CONFIG *cfg) base_uri_len = strlen(cfg->base_uri); cfg->uris = dcalloc(cfg->table_count, sizeof(char *)); for (i = 0; i < cfg->table_count; i++) { - uri = cfg->uris[i] = dcalloc(base_uri_len + 5, 1); + uri = cfg->uris[i] = dcalloc(base_uri_len + 6, 1); /* * If there is only one table, just use base name. */ |