Woops, truncate, not substr

This commit is contained in:
Lirusaito
2019-02-15 23:41:06 -05:00
parent 0269affb69
commit 8f96442cc7

View File

@@ -459,7 +459,7 @@ void LLPanelLogin::mungePassword(const std::string& password)
}
else
{
LLMD5 pass((unsigned char *)password.substr(16).c_str());
LLMD5 pass((unsigned char *)utf8str_truncate(password, 16).c_str());
char munged_password[MD5HEX_STR_SIZE];
pass.hex_digest(munged_password);
mMungedPassword = munged_password;