Changed: #1051 Crash when index is out of bounds

hg/feature/sound
kervala 14 years ago
parent 318a083a24
commit cd2164e602

@ -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…
Cancel
Save