fix: Uses the correct index.
This commit is contained in:
parent
feecacefc5
commit
ed26be48d7
@ -81,7 +81,7 @@ public class UsernameAttribute extends Attribute
|
|||||||
{
|
{
|
||||||
if (stripTrailingZeroes)
|
if (stripTrailingZeroes)
|
||||||
{
|
{
|
||||||
while (length > 0 && attributeValue[offset + length] == 0)
|
while (length > 0 && attributeValue[offset + length - 1] == 0)
|
||||||
{
|
{
|
||||||
length--;
|
length--;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user