aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-02-24 18:47:56 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-02-24 22:53:45 -0500
commit0bc1784f51311a9c5f4b37423c88ec54b970fa01 (patch)
tree57c87a3148e65d7cd2731adf46f03509ee0bcc85 /src
parentb07810ad2567088dee585e5fcc18f5a3b8881285 (diff)
downloadtrackermap-server-0bc1784f51311a9c5f4b37423c88ec54b970fa01.tar.gz
trackermap-server-0bc1784f51311a9c5f4b37423c88ec54b970fa01.tar.bz2
trackermap-server-0bc1784f51311a9c5f4b37423c88ec54b970fa01.zip
Added US_ASCII Charset to ChannelBuffer.toString() call;
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/AplicomProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AplicomProtocolDecoder.java b/src/org/traccar/protocol/AplicomProtocolDecoder.java
index 92e0d178c..daa8844b4 100644
--- a/src/org/traccar/protocol/AplicomProtocolDecoder.java
+++ b/src/org/traccar/protocol/AplicomProtocolDecoder.java
@@ -490,7 +490,7 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder {
break;
}
buf.readUnsignedByte();
- position.set(Position.KEY_VIN, buf.readBytes(17).toString());
+ position.set(Position.KEY_VIN, buf.readBytes(17).toString(StandardCharsets.US_ASCII));
position.set("towedDetectionStatus", buf.readUnsignedByte());
} else if (type == 0x0E) {
buf.skipBytes(length);