aboutsummaryrefslogtreecommitdiffstats
path: root/packet-h245.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-07-09 09:45:42 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-07-09 09:45:42 +0000
commit249b06f6e2771babd8cb74d4459d13a2ec874587 (patch)
tree785ee96103bbdafff950e1c565fc70eff8ff2443 /packet-h245.c
parente8b5b4fec2c8cca8e3a23b35442d98f04923e710 (diff)
fix bug in dissect_per_GeneralString()
use proto_tree_add_item() instead of proto_tree_add_string() since there is nothing that says the string will be null terminated. svn path=/trunk/; revision=8006
Diffstat (limited to 'packet-h245.c')
-rw-r--r--packet-h245.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-h245.c b/packet-h245.c
index ef1f804de6..620eb94e41 100644
--- a/packet-h245.c
+++ b/packet-h245.c
@@ -91,8 +91,10 @@ proper helper routines
/* packet-h245.c
* Routines for H.245 packet dissection
* 2003 Ronnie Sahlberg
+ * with great support with testing and providing capturefiles
+ * from Martin Regner
*
- * $Id: packet-h245.c,v 1.11 2003/07/08 18:16:43 guy Exp $
+ * $Id: packet-h245.c,v 1.12 2003/07/09 09:45:42 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1724,7 +1726,8 @@ dissect_per_GeneralString(tvbuff_t *tvb, guint32 offset, packet_info *pinfo, pro
offset=dissect_per_length_determinant(tvb, offset, pinfo, etr, hf_h245_GeneralString_length, &length);
- proto_tree_add_string(tree, hf_index, tvb, (offset>>3), length, tvb_get_ptr(tvb, (offset>>3), length));
+
+ proto_tree_add_item(tree, hf_index, tvb, offset>>3, length, FALSE);
offset+=length*8;