aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorDr. Lars Völker <lars.voelker@technica-engineering.de>2023-02-23 16:43:53 +0100
committerDr. Lars Völker <lars.voelker@technica-engineering.de>2023-02-23 16:43:53 +0100
commitb0487565addd3fed207b1c164ae0cdf306433a90 (patch)
treeea1bde4d6da0177039d8fc35e80543ba1dff5add /epan/dissectors
parent5948274adbc6022bf9530d44b69d671949d58a44 (diff)
TECMP: Fix voltage representation in vendor data
Fixes: #18871
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-tecmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tecmp.c b/epan/dissectors/packet-tecmp.c
index 144984659c..94832965ed 100644
--- a/epan/dissectors/packet-tecmp.c
+++ b/epan/dissectors/packet-tecmp.c
@@ -1239,7 +1239,7 @@ dissect_tecmp_status_device_vendor_data(tvbuff_t *tvb, packet_info *pinfo _U_, p
tmp = tvb_get_guint16(tvb, offset, ENC_BIG_ENDIAN);
proto_tree_add_string_format_value(tree, hf_tecmp_payload_status_dev_vendor_technica_voltage, tvb, offset, 2, NULL,
- "%d.%d V", (tmp & 0x0000ff00) >> 8, tmp & 0x000000ff);
+ "%d.%02d V", (tmp & 0x0000ff00) >> 8, tmp & 0x000000ff);
offset += 2;
if (tvb_captured_length_remaining(tvb, offset) == 1) {