diff options
author | Michael Mann <mmann78@netscape.net> | 2017-01-29 21:53:49 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-01-31 02:26:35 +0000 |
commit | d802b5b0ec8e10fbf64f6c76815b759323029bb4 (patch) | |
tree | 2071ff718141347ff02c8dc02aafb9090e8fc5e1 /epan/dissectors/packet-rtsp.c | |
parent | 60a877167f05644a5a75676798084027accd1c3d (diff) |
Add format_text_wmem.
This allows for a wmem_allocator for users of format_text who want
it (dissectors for wmem_packet_scope()). This lessens the role of
current format_text functionality in hopes that it will eventually
be replaced.
Change-Id: I970557a65e32aa79634a3fcc654ab641b871178e
Reviewed-on: https://code.wireshark.org/review/19855
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-rtsp.c')
-rw-r--r-- | epan/dissectors/packet-rtsp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/epan/dissectors/packet-rtsp.c b/epan/dissectors/packet-rtsp.c index 8a4c167f7c..7eb110124a 100644 --- a/epan/dissectors/packet-rtsp.c +++ b/epan/dissectors/packet-rtsp.c @@ -894,11 +894,10 @@ dissect_rtspmessage(tvbuff_t *tvb, int offset, packet_info *pinfo, if (is_request_or_reply) { if ( rtsp_type_packet == RTSP_REPLY ) { frame_label = wmem_strdup_printf(wmem_packet_scope(), - "Reply: %s", format_text(line, first_linelen)); + "Reply: %s", format_text_wmem(wmem_packet_scope(), line, first_linelen)); } else { - frame_label = wmem_strdup(wmem_packet_scope(), - format_text(line, first_linelen)); + frame_label = format_text_wmem(wmem_packet_scope(), line, first_linelen); } } @@ -917,11 +916,11 @@ dissect_rtspmessage(tvbuff_t *tvb, int offset, packet_info *pinfo, if ( rtsp_type_packet == RTSP_REPLY ) { col_set_str(pinfo->cinfo, COL_INFO, "Reply: "); col_append_str(pinfo->cinfo, COL_INFO, - format_text(line, first_linelen)); + format_text_wmem(wmem_packet_scope(), line, first_linelen)); } else { col_add_str(pinfo->cinfo, COL_INFO, - format_text(line, first_linelen)); + format_text_wmem(wmem_packet_scope(), line, first_linelen)); } else |