aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/FifotrackProtocolDecoder.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/FifotrackProtocolDecoder.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/FifotrackProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/FifotrackProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/FifotrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/FifotrackProtocolDecoder.java
index a9cf025af..2e728a918 100644
--- a/src/main/java/org/traccar/protocol/FifotrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/FifotrackProtocolDecoder.java
@@ -196,7 +196,7 @@ public class FifotrackProtocolDecoder extends BaseProtocolDecoder {
parser.nextInt(); // offset
parser.nextInt(); // size
buf.readerIndex(dataIndex);
- photo.writeBytes(buf.readBytes(buf.readableBytes() - 3)); // ignore checksum
+ buf.readBytes(photo, buf.readableBytes() - 3); // ignore checksum
if (photo.isWritable()) {
requestPhoto(channel, remoteAddress, imei, photoId);
} else {