From 2548f6ee2b1d86e3e82340c0335f312244668537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Fri, 20 Dec 2013 09:04:12 +0000 Subject: [PATCH] Strip leading spaces in unknown-extension value. svn path=/trunk/; revision=54287 --- epan/dissectors/packet-imf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-imf.c b/epan/dissectors/packet-imf.c index ecac6ad440..85c19181d1 100644 --- a/epan/dissectors/packet-imf.c +++ b/epan/dissectors/packet-imf.c @@ -775,7 +775,7 @@ dissect_imf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item(unknown_tree, hf_imf_extension_type, tvb, unknown_offset, start_offset - 1 - unknown_offset, ENC_ASCII|ENC_NA); /* remove 2 bytes to take off the final CRLF to make things a little prettier */ - item = proto_tree_add_item(unknown_tree, hf_imf_extension_value, tvb, start_offset, end_offset - start_offset - 2, ENC_ASCII|ENC_NA); + item = proto_tree_add_item(unknown_tree, hf_imf_extension_value, tvb, value_offset, end_offset - value_offset - 2, ENC_ASCII|ENC_NA); } else { /* remove 2 bytes to take off the final CRLF to make things a little prettier */