summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--same/src/main/java/com/orbekk/net/BroadcastListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/same/src/main/java/com/orbekk/net/BroadcastListener.java b/same/src/main/java/com/orbekk/net/BroadcastListener.java
index 3fdfd23..50ad5af 100644
--- a/same/src/main/java/com/orbekk/net/BroadcastListener.java
+++ b/same/src/main/java/com/orbekk/net/BroadcastListener.java
@@ -46,7 +46,7 @@ public class BroadcastListener {
String address = packet.getAddress().getHostAddress();
logger.debug("Received broadcast from " + address +
- ": " + new String(packet.getData()));
+ ": " + new String(packet.getData(), 0, packet.getLength()));
return packet;
}