From 4fe5dbb73a8107e227a5fd9c3b0392153194a93a Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Wed, 28 Oct 2020 16:29:25 +0100 Subject: [PATCH] Fixed arraycopy source position --- src/main/java/Main/ProtocolMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/Main/ProtocolMessage.java b/src/main/java/Main/ProtocolMessage.java index 9a1cdbd..f457a72 100644 --- a/src/main/java/Main/ProtocolMessage.java +++ b/src/main/java/Main/ProtocolMessage.java @@ -32,7 +32,7 @@ public class ProtocolMessage { this.raw[2] = (char)integer[2]; 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) {