aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rtcp.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-09-21 20:05:13 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-09-21 20:05:13 +0000
commit8b32f13476745bc1af7c502d1fb4fcc6b2f576ea (patch)
treea783dc714a4fd4a95910eeb9c3dbe924a1723c14 /epan/dissectors/packet-rtcp.c
parent4e09b5e0b3672e6893d6d90e833cb9e05436faf9 (diff)
get rid of strcpy in packet-ntp.c
at the same time change ntp_fmt_ts to return a pointer to ian ep-allocated buffer. remove the redundant buffer parameter in the signature and change all callers. svn path=/trunk/; revision=15939
Diffstat (limited to 'epan/dissectors/packet-rtcp.c')
-rw-r--r--epan/dissectors/packet-rtcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-rtcp.c b/epan/dissectors/packet-rtcp.c
index 86df65bfd5..bb534f0de2 100644
--- a/epan/dissectors/packet-rtcp.c
+++ b/epan/dissectors/packet-rtcp.c
@@ -1370,12 +1370,12 @@ dissect_rtcp_sr( packet_info *pinfo, tvbuff_t *tvb, int offset, proto_tree *tree
unsigned int count )
{
#if 0
- gchar buff[ NTP_TS_SIZE ];
+ gchar *buff;
char* ptime = tvb_get_ptr( tvb, offset, 8 );
/* Retreive the NTP timestamp. Using the NTP dissector for this */
- ntp_fmt_ts( ptime, buff );
- proto_tree_add_string_format( tree, hf_rtcp_ntp, tvb, offset, 8, ( const char* ) &buff, "NTP timestamp: %s", &buff );
+ buff=ntp_fmt_ts(ptime);
+ proto_tree_add_string_format( tree, hf_rtcp_ntp, tvb, offset, 8, ( const char* ) buff, "NTP timestamp: %s", buff );
free( ptime ); ??????????????????????????????????????????????????????????????????
offset += 8;
#else