mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Revert "Remove several more "size - 1", none of which are dangereous."
This reverts commit bcabf9b55c.
I should test code better...
This commit is contained in:
@@ -52,7 +52,7 @@ CString CMessage::GetParams(unsigned int uIdx, unsigned int uLen) const {
|
||||
if (m_vsParams.empty() || uLen == 0) {
|
||||
return "";
|
||||
}
|
||||
if (uLen + uIdx + 1 > m_vsParams.size()) {
|
||||
if (uLen > m_vsParams.size() - uIdx - 1) {
|
||||
uLen = m_vsParams.size() - uIdx;
|
||||
}
|
||||
VCString vsParams;
|
||||
|
||||
Reference in New Issue
Block a user