summaryrefslogtreecommitdiff
path: root/test/format/wts.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/format/wts.c')
-rw-r--r--test/format/wts.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/format/wts.c b/test/format/wts.c
index b0e037ccf93..b75a0c793eb 100644
--- a/test/format/wts.c
+++ b/test/format/wts.c
@@ -136,12 +136,8 @@ wts_open(const char *home, int set_api, WT_CONNECTION **connp)
*connp = NULL;
-#define WIREDTIGER_OPEN_CONFIG_LEN (4 * 1024)
- if ((g.wiredtiger_open_config =
- calloc(WIREDTIGER_OPEN_CONFIG_LEN, sizeof(char))) == NULL)
- die(ENOMEM, "calloc");
config = p = g.wiredtiger_open_config;
- end = config + WIREDTIGER_OPEN_CONFIG_LEN;
+ end = config + sizeof(g.wiredtiger_open_config);
p += snprintf(p, REMAIN(p, end),
"create,checkpoint_sync=false,cache_size=%" PRIu32 "MB",