From a888cd98191904f5aa5e224bd8def5814248cffc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 24 Apr 2023 10:11:51 +0300 Subject: random crash fix --- include/m_string.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/m_string.inl b/include/m_string.inl index 7834a573bb..e4cb32a4a6 100644 --- a/include/m_string.inl +++ b/include/m_string.inl @@ -112,7 +112,7 @@ void CMSimpleStringT::Append(PCXSTR pszSrc, int nLength) } //Make sure we don't read pass end of the terminating NULL - int nSrcLength = StringLength(pszSrc); + int nSrcLength = StringLengthN(pszSrc, nLength); nLength = nLength > nSrcLength ? nSrcLength : nLength; int nNewLength = nOldLength + nLength; -- cgit v1.2.3