SL-18330: Fix a narrowing conversion in LLSDSerialize::deserialize().

meow-7.2.2
Nat Goodspeed 2023-03-01 14:35:04 -05:00
parent 18ac7ab027
commit c18f0a61ab
1 changed files with 1 additions and 1 deletions

View File

@ -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();