Fix length of Error parameter.
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 6 Dec 2011 19:08:01 +0000 (19:08 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 6 Dec 2011 19:08:01 +0000 (19:08 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40103 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-megaco.c

index 0b5f386f7a987a359489dd89d8f5ef886195dcee..c171320dba6a296cacb3080004dc7312f0bf9041 100644 (file)
@@ -536,7 +536,7 @@ dissect_megaco_text(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
             tvb_current_offset = megaco_tvb_find_token(tvb, tvb_offset, tvb_len); /*tvb_find_guint8(tvb, tvb_offset+1, tvb_len, '}');*/
 
             ti = proto_tree_add_text(megaco_tree, tvb, tvb_previous_offset, tvb_current_offset-tvb_previous_offset,
-                    "%s",tvb_format_text(tvb, tvb_previous_offset, tvb_current_offset-tvb_previous_offset+1));
+                    "%s",tvb_format_text(tvb, tvb_previous_offset, tvb_current_offset-tvb_previous_offset));
             message_body_tree = proto_item_add_subtree(ti, ett_megaco_message_body);
 
             if (tree) {