aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/CellocatorFrameDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/CellocatorFrameDecoder.java')
-rw-r--r--src/org/traccar/protocol/CellocatorFrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/CellocatorFrameDecoder.java b/src/org/traccar/protocol/CellocatorFrameDecoder.java
index 8cdba18e0..986dc75ec 100644
--- a/src/org/traccar/protocol/CellocatorFrameDecoder.java
+++ b/src/org/traccar/protocol/CellocatorFrameDecoder.java
@@ -59,7 +59,7 @@ public class CellocatorFrameDecoder extends BaseFrameDecoder {
}
if (length > 0 && buf.readableBytes() >= length) {
- return buf.readBytes(length);
+ return buf.readRetainedSlice(length);
}
return null;