diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-03-24 04:26:05 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-03-24 04:26:05 +0000 |
commit | dc2d2a1952b60c16904c45eac466c41c25ffe160 (patch) | |
tree | b552041d73aada8a74bb8fba3b829ca81781c07a /packet-rsvp.c | |
parent | 50b9e7fa0dd34e33c747bf1ec56cc175131c7aa3 (diff) |
Use "tvb_format_text()" to display a string, so that non-printable
characters are handled reasonably.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10473 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rsvp.c')
-rw-r--r-- | packet-rsvp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packet-rsvp.c b/packet-rsvp.c index d395b0d86b..50d098542e 100644 --- a/packet-rsvp.c +++ b/packet-rsvp.c @@ -3,7 +3,7 @@ * * (c) Copyright Ashok Narayanan <ashokn@cisco.com> * - * $Id: packet-rsvp.c,v 1.87 2004/01/23 09:40:37 jmayer Exp $ + * $Id: packet-rsvp.c,v 1.88 2004/03/24 04:26:05 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2887,9 +2887,8 @@ dissect_rsvp_session_attribute (proto_tree *ti, tvbuff_t *tvb, proto_tree_add_text(rsvp_object_tree, tvb, offset2+3, 1, "Name length: %u", name_len); proto_tree_add_text(rsvp_object_tree, tvb, offset2+4, name_len, - "Name: %.*s", - name_len, - tvb_get_ptr(tvb, offset2+4, name_len)); + "Name: %s", + tvb_format_text(tvb, offset2+4, name_len)); proto_item_set_text(ti, "SESSION ATTRIBUTE: SetupPrio %d, HoldPrio %d, %s%s%s%s%s [%s]", tvb_get_guint8(tvb, offset2), |