summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-24 10:11:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-24 10:11:51 +0300
commita888cd98191904f5aa5e224bd8def5814248cffc (patch)
tree4b4d54de950afc73a7f008a1d06f365126a365e0 /include
parentc8a01589f0570bc9f630c4b498c6fb0cc54c79a4 (diff)
random crash fix
Diffstat (limited to 'include')
-rw-r--r--include/m_string.inl2
1 files changed, 1 insertions, 1 deletions
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<BaseType>::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;