aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-09-17 21:12:01 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-09-17 21:12:01 +1200
commite20baccccc1aff70db085dc647cb1887f071c92c (patch)
tree7d41bce18cbeef72850ca982d9041b41c9f841f5 /src/org
parent57fba5c08cb03fffb360a8a4a3ae530ad94e7679 (diff)
downloadtraccar-server-e20baccccc1aff70db085dc647cb1887f071c92c.tar.gz
traccar-server-e20baccccc1aff70db085dc647cb1887f071c92c.tar.bz2
traccar-server-e20baccccc1aff70db085dc647cb1887f071c92c.zip
Fix totem frame decoder
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/TotemFrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TotemFrameDecoder.java b/src/org/traccar/protocol/TotemFrameDecoder.java
index 84a14dac6..ad7e160c2 100644
--- a/src/org/traccar/protocol/TotemFrameDecoder.java
+++ b/src/org/traccar/protocol/TotemFrameDecoder.java
@@ -40,7 +40,7 @@ public class TotemFrameDecoder extends FrameDecoder {
}
// Read message
- int length = Integer.parseInt(buf.toString(2, 2, Charset.defaultCharset()), 16) + 1;
+ int length = Integer.parseInt(buf.toString(2, 2, Charset.defaultCharset()), 16);
if (length >= buf.readableBytes()) {
return buf.readBytes(length);
}