diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-29 22:11:47 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-29 22:11:47 -0700 |
commit | 35b902cd59070a7185d99640851b99798a0d1eb7 (patch) | |
tree | 8eb5719c424f7c58235940d20af67e56397087da /src/main/java/org/traccar/protocol/TekProtocolDecoder.java | |
parent | 707389659d7d1e08f774bf82557f0bcff4b13e37 (diff) | |
download | trackermap-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.java | 2 |
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; |