diff options
Diffstat (limited to 'src/mongo/crypto/fle_crypto.cpp')
| -rw-r--r-- | src/mongo/crypto/fle_crypto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/crypto/fle_crypto.cpp b/src/mongo/crypto/fle_crypto.cpp index f55db25f970..a028efb47de 100644 --- a/src/mongo/crypto/fle_crypto.cpp +++ b/src/mongo/crypto/fle_crypto.cpp @@ -1074,7 +1074,7 @@ BSONObj toBSON(BSONType type, ConstDataRange cdr) { builder.appendNum(static_cast<uint32_t>(docLength)); builder.appendChar(static_cast<uint8_t>(type)); - builder.appendStr(valueString, true); + builder.appendCStr(valueString); builder.appendBuf(cdr.data(), cdr.length()); builder.appendChar('\0'); |
