diff options
author | Michael Mann <mmann78@netscape.net> | 2015-01-04 21:40:05 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-01-05 13:55:04 +0000 |
commit | 22b4ec91c006fec65e655ccbb0dbbc32438f820b (patch) | |
tree | 033dc9de28b8a79550a4dd769fcfb249df4be38c /ui/tap-rtp-common.c | |
parent | 9a7318a184e25e08d1c8449e3f826e0a5c66ca3b (diff) | |
download | wireshark-22b4ec91c006fec65e655ccbb0dbbc32438f820b.tar.gz |
Replace ep_display_to_address with wmem equivalent display_to_address.
Almost all instances require using "manual" memory management, but it gets some ep_ calls out of the GUI.
Change-Id: Ifa7303766b08d09442ccf3d7063cbe061578ecd9
Reviewed-on: https://code.wireshark.org/review/6318
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/tap-rtp-common.c')
-rw-r--r-- | ui/tap-rtp-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/tap-rtp-common.c b/ui/tap-rtp-common.c index 1959ea1c70..0623e6ef74 100644 --- a/ui/tap-rtp-common.c +++ b/ui/tap-rtp-common.c @@ -127,10 +127,12 @@ void rtp_write_header(rtp_stream_info_t *strinfo, FILE *file) size_t sourcelen; guint16 port; /* UDP port */ guint16 padding; /* 2 padding bytes */ + char* addr_str = (char*)address_to_display(NULL, &(strinfo->dest_addr)); fprintf(file, "#!rtpplay%s %s/%u\n", RTPFILE_VERSION, - ep_address_to_display(&(strinfo->dest_addr)), + addr_str, strinfo->dest_port); + wmem_free(NULL, addr_str); start_sec = g_htonl(strinfo->start_fd->abs_ts.secs); start_usec = g_htonl(strinfo->start_fd->abs_ts.nsecs / 1000000); |