summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-03-01 14:35:04 -0500
committerNat Goodspeed <nat@lindenlab.com>2023-03-01 14:35:04 -0500
commitc18f0a61abfe8b9527f9a91b0e52e909cf7debfc (patch)
tree252ae5cdb7a684aeb8574f986c3f2db984fee8ac
parent18ac7ab027217e05876a066c86ab3fbaa2a7328f (diff)
SL-18330: Fix a narrowing conversion in LLSDSerialize::deserialize().
-rw-r--r--indra/llcommon/llsdserialize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llcommon/llsdserialize.cpp b/indra/llcommon/llsdserialize.cpp
index a14a6b5b1b..99d0c39694 100644
--- a/indra/llcommon/llsdserialize.cpp
+++ b/indra/llcommon/llsdserialize.cpp
@@ -143,7 +143,7 @@ bool LLSDSerialize::deserialize(LLSD& sd, std::istream& str, llssize max_bytes)
// byte. We could store one if needed, since even the incremented
// inbuf won't exceed sizeof(hdr_buf)-1, but there's no need.
}
- std::string header{ hdr_buf, inbuf };
+ std::string header{ hdr_buf, narrow(inbuf) };
if (str.fail())
{
str.clear();