aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-aim.c
diff options
context:
space:
mode:
authorAnders <anders.broman@ericsson.com>2015-05-25 09:38:11 +0200
committerAnders Broman <a.broman58@gmail.com>2015-05-25 07:40:10 +0000
commitdc14e3ce0df78da52da95e7356c6e15390b191ec (patch)
treee6f75e4012640044c50674c2a02acedf037a8feb /epan/dissectors/packet-aim.c
parent7410afb64e9508b85a1252e170dafd3ecead5b6d (diff)
[AIM] Fix string length
Change-Id: I64f73bd5cb131ad6efc64eea6a7eb66af9cee5c4 Reviewed-on: https://code.wireshark.org/review/8622 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-aim.c')
-rw-r--r--epan/dissectors/packet-aim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-aim.c b/epan/dissectors/packet-aim.c
index 2ef876169e..0d2a6b85fc 100644
--- a/epan/dissectors/packet-aim.c
+++ b/epan/dissectors/packet-aim.c
@@ -1159,7 +1159,7 @@ dissect_aim_tlv_value_string08_array (proto_item *ti, guint16 valueid _U_, tvbuf
while (tvb_reported_length_remaining(tvb, offset) > 1)
{
guint8 string_len = tvb_get_guint8(tvb, offset);
- proto_tree_add_item(entry, hf_aim_string08, tvb, offset, 1, ENC_UTF_8|ENC_NA);
+ proto_tree_add_item(entry, hf_aim_string08, tvb, offset, string_len, ENC_UTF_8 | ENC_NA);
offset += string_len;
}