diff options
author | jon-stumpf <jon.stumpf@gmail.com> | 2017-02-24 18:47:56 -0500 |
---|---|---|
committer | jon-stumpf <jon.stumpf@gmail.com> | 2017-02-24 22:53:45 -0500 |
commit | 0bc1784f51311a9c5f4b37423c88ec54b970fa01 (patch) | |
tree | 57c87a3148e65d7cd2731adf46f03509ee0bcc85 /src | |
parent | b07810ad2567088dee585e5fcc18f5a3b8881285 (diff) | |
download | trackermap-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.java | 2 |
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); |