Fixed arraycopy source position
This commit is contained in:
parent
ce388dbd1e
commit
4fe5dbb73a
@ -32,7 +32,7 @@ public class ProtocolMessage {
|
|||||||
this.raw[2] = (char)integer[2];
|
this.raw[2] = (char)integer[2];
|
||||||
this.raw[3] = (char)integer[3];
|
this.raw[3] = (char)integer[3];
|
||||||
|
|
||||||
System.arraycopy(message, 4, this.raw, 4, message.length);
|
System.arraycopy(message, 0, this.raw, 4, message.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ProtocolMessage(int length, char[] message) {
|
public ProtocolMessage(int length, char[] message) {
|
||||||
|
Loading…
Reference in New Issue
Block a user