From 26b8aafe870a1bd0e6f90cf3daf259c94cde1b61 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Thu, 14 Jan 2016 09:35:12 -0500 Subject: WT-2326 - Add dcalloc, dmalloc and dstrdup to wtperf Replace another calloc call with dcalloc. --- bench/wtperf/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench/wtperf/misc.c') diff --git a/bench/wtperf/misc.c b/bench/wtperf/misc.c index 93c903b5ab7..bdfd53d5295 100644 --- a/bench/wtperf/misc.c +++ b/bench/wtperf/misc.c @@ -40,7 +40,7 @@ setup_log_file(CONFIG *cfg) if (cfg->verbose < 1) return (0); - fname = calloc(strlen(cfg->monitor_dir) + + fname = dcalloc(strlen(cfg->monitor_dir) + strlen(cfg->table_name) + strlen(".stat") + 2, 1); sprintf(fname, "%s/%s.stat", cfg->monitor_dir, cfg->table_name); -- cgit v1.2.1