diff options
author | Keith Bostic <keith@wiredtiger.com> | 2014-10-20 16:11:50 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2014-10-20 16:11:50 -0400 |
commit | c22f22b5259e1dd8455188e68ff7e0c5a2b7340f (patch) | |
tree | 7a72e9561fc404fd9322d67d67c887d34e62cc8b /bench | |
parent | abd03e9118fff8c76cc966ec2f1763a5e25f454d (diff) | |
download | mongo-c22f22b5259e1dd8455188e68ff7e0c5a2b7340f.tar.gz |
Fix some whitespace, but fix it by removing some code we didn't need.
Diffstat (limited to 'bench')
-rw-r--r-- | bench/wtperf/config.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/wtperf/config.c b/bench/wtperf/config.c index ff5fd777081..0a2b3e21013 100644 --- a/bench/wtperf/config.c +++ b/bench/wtperf/config.c @@ -360,9 +360,8 @@ config_opt(CONFIG *cfg, WT_CONFIG_ITEM *k, WT_CONFIG_ITEM *v) newlen += (strlen(*strp) + 1); if ((newstr = calloc(newlen, sizeof(char))) == NULL) return (enomem(cfg)); - snprintf(newstr, newlen, + snprintf(newstr, newlen - 1, "%s,%*s", *strp, (int)v->len, v->str); - newstr[newlen - 1] = '\0'; /* Free the old value now we've copied it. */ free(*strp); } |