diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-09-21 20:05:13 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-09-21 20:05:13 +0000 |
commit | 1d3d2f48dfac050ae9f5206a9277382e714b319e (patch) | |
tree | a783dc714a4fd4a95910eeb9c3dbe924a1723c14 /epan/dissectors/packet-mip.c | |
parent | 82d60c6031299bd16c344f50cd4cafb9490e2430 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15939 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-mip.c')
-rw-r--r-- | epan/dissectors/packet-mip.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-mip.c b/epan/dissectors/packet-mip.c index 9444c471b2..ff6f1dd424 100644 --- a/epan/dissectors/packet-mip.c +++ b/epan/dissectors/packet-mip.c @@ -262,7 +262,6 @@ dissect_mip( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint8 flags; size_t offset=0; const guint8 *reftime; - gchar buff[NTP_TS_SIZE]; /* Make entries in Protocol column and Info column on summary display */ @@ -322,7 +321,7 @@ dissect_mip( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_bytes_format(mip_tree, hf_mip_ident, tvb, offset, 8, reftime, "Identification: %s", - ntp_fmt_ts(reftime, buff)); + ntp_fmt_ts(reftime)); offset += 8; } /* if tree */ @@ -362,7 +361,7 @@ dissect_mip( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_bytes_format(mip_tree, hf_mip_ident, tvb, offset, 8, reftime, "Identification: %s", - ntp_fmt_ts(reftime, buff)); + ntp_fmt_ts(reftime)); offset += 8; } /* if tree */ |