diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-09-21 20:05:13 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-09-21 20:05:13 +0000 |
commit | 8b32f13476745bc1af7c502d1fb4fcc6b2f576ea (patch) | |
tree | a783dc714a4fd4a95910eeb9c3dbe924a1723c14 /epan/dissectors/packet-rtcp.c | |
parent | 4e09b5e0b3672e6893d6d90e833cb9e05436faf9 (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.c | 6 |
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 |