This commit is contained in:
Denis Molony 2022-03-26 21:37:41 +10:00
parent b1ed1a74ba
commit c1deee56a0
1 changed files with 2 additions and 2 deletions

View File

@ -20,12 +20,12 @@ class CodedMessage extends Message
protected String getLine (int offset)
// ---------------------------------------------------------------------------------//
{
int length = buffer[offset] & 0xFF;
int length = buffer[offset++] & 0xFF;
byte[] translation = new byte[length];
codeOffset--;
for (int j = 0; j < length; j++)
{
translation[j] = buffer[offset + 1 + j];
translation[j] = buffer[offset + j];
translation[j] -= codeOffset - j * 3;
}
return HexFormatter.getString (translation, 0, length);