aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fcsb3.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-12-30 23:47:52 +0000
committerGuy Harris <guy@alum.mit.edu>2004-12-30 23:47:52 +0000
commita0de9d34c7b9c3087db9dd362eed57254e6b1cc4 (patch)
tree04a13fd1d65a01ebd1ff957ae8b6d5566db1738b /epan/dissectors/packet-fcsb3.c
parent467e33d1b198ac1a2b0df8972407a4539eee430d (diff)
Add a "tvb_bytes_to_str_punct()" routine, which wraps
"bytes_to_str_punct()", and use it instead of extracting the bytes and formatting them by hand. svn path=/trunk/; revision=12876
Diffstat (limited to 'epan/dissectors/packet-fcsb3.c')
-rw-r--r--epan/dissectors/packet-fcsb3.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/epan/dissectors/packet-fcsb3.c b/epan/dissectors/packet-fcsb3.c
index 3dd975cfed..363046fa17 100644
--- a/epan/dissectors/packet-fcsb3.c
+++ b/epan/dissectors/packet-fcsb3.c
@@ -680,7 +680,6 @@ static void dissect_fc_sbccs_dib_link_hdr (tvbuff_t *tvb, packet_info *pinfo,
guint16 ctl_info;
gchar buffer[128];
guint link_payload_len, i;
- gchar *lpath_ptr;
if (check_col (pinfo->cinfo, COL_INFO)) {
col_append_fstr (pinfo->cinfo, COL_INFO,
@@ -741,14 +740,12 @@ static void dissect_fc_sbccs_dib_link_hdr (tvbuff_t *tvb, packet_info *pinfo,
link_payload_len = tvb_get_ntohs (tvb, offset+10);
i = 0;
offset += 16;
- lpath_ptr = (gchar *)tvb_get_ptr (tvb, offset, link_payload_len/4);
while (i < link_payload_len) {
proto_tree_add_text (tree, tvb, offset, 4,
- "Logical Paths %d-%d: %x:%x:%x:%x",
- i*8, ((i+4)*8) - 1, lpath_ptr[i],
- lpath_ptr[i+1], lpath_ptr[i+2],
- lpath_ptr[i+3]);
+ "Logical Paths %d-%d: %s",
+ i*8, ((i+4)*8) - 1,
+ tvb_bytes_to_str_punct (tvb, offset, 4, ':'));
i += 4;
offset += 4;
}