We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feecace commit ed26be4Copy full SHA for ed26be4
src/main/java/org/ice4j/attribute/UsernameAttribute.java
@@ -81,7 +81,7 @@ void decodeAttributeBody(byte[] attributeValue, char offset, char length)
81
{
82
if (stripTrailingZeroes)
83
84
- while (length > 0 && attributeValue[offset + length] == 0)
+ while (length > 0 && attributeValue[offset + length - 1] == 0)
85
86
length--;
87
}
0 commit comments