diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-10-16 11:43:18 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-10-16 11:43:18 +1100 |
commit | b1f918004f72faeb85ecabc562b585a682c93cde (patch) | |
tree | f2e4f199d5c9fee8d1eb54a0b6e533e9fbd39a9f | |
parent | 72fa961157ad776beab726c15b92906cd3d7a102 (diff) | |
download | mongo-b1f918004f72faeb85ecabc562b585a682c93cde.tar.gz |
Include the trailing NUL when copying a config string.
-rw-r--r-- | src/conn/conn_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn/conn_api.c b/src/conn/conn_api.c index d33412ba34b..2abe644bff2 100644 --- a/src/conn/conn_api.c +++ b/src/conn/conn_api.c @@ -907,7 +907,7 @@ __conn_config_env(WT_SESSION_IMPL *session, const char *cfg[], WT_ITEM *cbuf) len = strlen(env_config); if (len == 0) return (0); - WT_RET(__wt_buf_set(session, cbuf, env_config, len)); + WT_RET(__wt_buf_set(session, cbuf, env_config, len + 1)); /* * Security stuff: |