Remove several more "size - 1", none of which are dangereous.

This commit is contained in:
Alexey Sokolov
2017-10-03 08:27:05 +01:00
parent d73a4090c8
commit bcabf9b55c
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ CString CMessage::GetParams(unsigned int uIdx, unsigned int uLen) const {
if (m_vsParams.empty() || uLen == 0) {
return "";
}
if (uLen > m_vsParams.size() - uIdx - 1) {
if (uLen + uIdx + 1 > m_vsParams.size()) {
uLen = m_vsParams.size() - uIdx;
}
VCString vsParams;