Skip to content

Commit 3c2b107

Browse files
committed
Fix migrated code
1 parent 2073a71 commit 3c2b107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CLR/Core/Serialization/BinaryFormatter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ HRESULT CLR_RT_BinaryFormatter::TypeHandler::ReadValue(int &res)
10521052
auto dstString = (char *)str->StringText();
10531053

10541054
NANOCLR_CHECK_HRESULT(m_bf->ReadArray((CLR_UINT8 *)dstString, len));
1055-
dst[len] = 0;
1055+
dstString[len] = 0;
10561056
}
10571057

10581058
res = c_Action_None;

0 commit comments

Comments
 (0)