summaryrefslogtreecommitdiff
path: root/src/mongo/rpc/op_msg_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/rpc/op_msg_test.h')
-rw-r--r--src/mongo/rpc/op_msg_test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/rpc/op_msg_test.h b/src/mongo/rpc/op_msg_test.h
index 58f25f7417f..0e8ad918997 100644
--- a/src/mongo/rpc/op_msg_test.h
+++ b/src/mongo/rpc/op_msg_test.h
@@ -80,7 +80,7 @@ protected:
template <typename... Rest>
void append(StringData arg, Rest&&... rest) {
- buffer.appendStr(arg, /* null terminate*/ true);
+ buffer.appendCStr(arg);
append(rest...);
}