SL-18330: Fix a narrowing conversion in LLSDSerialize::deserialize().
parent
18ac7ab027
commit
c18f0a61ab
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue