aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpls-echo.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-mpls-echo.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-mpls-echo.c')
-rw-r--r--epan/dissectors/packet-mpls-echo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-mpls-echo.c b/epan/dissectors/packet-mpls-echo.c
index 9f0df19381..575c7506e7 100644
--- a/epan/dissectors/packet-mpls-echo.c
+++ b/epan/dissectors/packet-mpls-echo.c
@@ -943,7 +943,6 @@ dissect_mpls_echo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree *mpls_echo_tree = NULL, *mpls_echo_gflags = NULL;
guint8 msgtype;
const guint8 *ts_sent, *ts_rec;
- gchar buff[NTP_TS_SIZE];
/* If version != 1 we assume it's not an mpls ping packet */
if (!tvb_bytes_exist(tvb, 0, 5)) {
@@ -1020,10 +1019,10 @@ dissect_mpls_echo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* Using NTP routine to calculate the timestamp */
ts_sent = tvb_get_ptr(tvb, 16, 8);
proto_tree_add_bytes_format(mpls_echo_tree, hf_mpls_echo_ts_sent, tvb,
- offset + 16, 8, ts_sent, "Timestamp Sent: %s", ntp_fmt_ts(ts_sent, buff));
+ offset + 16, 8, ts_sent, "Timestamp Sent: %s", ntp_fmt_ts(ts_sent));
ts_rec = tvb_get_ptr(tvb, 24, 8);
proto_tree_add_bytes_format(mpls_echo_tree, hf_mpls_echo_ts_rec, tvb,
- offset + 24, 8, ts_rec, "Timestamp Received: %s", ntp_fmt_ts(ts_rec, buff));
+ offset + 24, 8, ts_rec, "Timestamp Received: %s", ntp_fmt_ts(ts_rec));
}
}