aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/TekProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-04-29 22:11:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-04-29 22:11:47 -0700
commit35b902cd59070a7185d99640851b99798a0d1eb7 (patch)
tree8eb5719c424f7c58235940d20af67e56397087da /src/main/java/org/traccar/protocol/TekProtocolDecoder.java
parent707389659d7d1e08f774bf82557f0bcff4b13e37 (diff)
downloadtrackermap-server-35b902cd59070a7185d99640851b99798a0d1eb7.tar.gz
trackermap-server-35b902cd59070a7185d99640851b99798a0d1eb7.tar.bz2
trackermap-server-35b902cd59070a7185d99640851b99798a0d1eb7.zip
Fix buffer reference issues
Diffstat (limited to 'src/main/java/org/traccar/protocol/TekProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/TekProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TekProtocolDecoder.java b/src/main/java/org/traccar/protocol/TekProtocolDecoder.java
index a9101e65f..33ff51d2d 100644
--- a/src/main/java/org/traccar/protocol/TekProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TekProtocolDecoder.java
@@ -69,7 +69,7 @@ public class TekProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedByte(); // rssi
buf.readUnsignedByte(); // battery / status
- String imei = ByteBufUtil.hexDump(buf.readBytes(8)).substring(1);
+ String imei = ByteBufUtil.hexDump(buf.readSlice(8)).substring(1);
DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, imei);
if (deviceSession == null) {
return null;