mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-05 23:09:04 +00:00
Changed: #1051 Crash when index is out of bounds
This commit is contained in:
parent
097ef0a8e8
commit
f7f6ace84f
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ void printDownload(const std::string &str)
|
|||
length = (uint)ucstr.length();
|
||||
if (length > maxLength)
|
||||
{
|
||||
ucstr = ucstr.luabind_substr(length - maxLength - 3);
|
||||
ucstr = ucstr.luabind_substr(length - maxLength + 3);
|
||||
nstr = std::string("...") + ucstr.toUtf8();
|
||||
length = maxLength;
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ void printDownload(const std::string &str)
|
|||
length = (uint)nstr.length();
|
||||
if (length > maxLength)
|
||||
{
|
||||
nstr = std::string("...") + nstr.substr(length - maxLength - 3);
|
||||
nstr = std::string("...") + nstr.substr(length - maxLength + 3);
|
||||
length = maxLength;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue