aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-3g-a11.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-3g-a11.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-3g-a11.c')
-rw-r--r--epan/dissectors/packet-3g-a11.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/epan/dissectors/packet-3g-a11.c b/epan/dissectors/packet-3g-a11.c
index 6f656e16dc..7e5cc9540c 100644
--- a/epan/dissectors/packet-3g-a11.c
+++ b/epan/dissectors/packet-3g-a11.c
@@ -766,7 +766,6 @@ dissect_a11( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
guint8 flags;
size_t offset=0;
const guint8 *reftime;
- gchar buff[NTP_TS_SIZE];
if (!tvb_bytes_exist(tvb, offset, 1))
return 0; /* not enough data to check message type */
@@ -832,7 +831,7 @@ dissect_a11( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_bytes_format(a11_tree, hf_a11_ident, tvb, offset, 8,
reftime,
"Identification: %s",
- ntp_fmt_ts(reftime, buff));
+ ntp_fmt_ts(reftime));
offset += 8;
} /* if tree */
@@ -872,7 +871,7 @@ dissect_a11( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_bytes_format(a11_tree, hf_a11_ident, tvb, offset, 8,
reftime,
"Identification: %s",
- ntp_fmt_ts(reftime, buff));
+ ntp_fmt_ts(reftime));
offset += 8;
} /* if tree */
@@ -906,7 +905,7 @@ dissect_a11( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_bytes_format(a11_tree, hf_a11_ident, tvb, offset, 8,
reftime,
"Identification: %s",
- ntp_fmt_ts(reftime, buff));
+ ntp_fmt_ts(reftime));
offset += 8;
} /* if tree */
@@ -945,7 +944,7 @@ dissect_a11( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_bytes_format(a11_tree, hf_a11_ident, tvb, offset, 8,
reftime,
"Identification: %s",
- ntp_fmt_ts(reftime, buff));
+ ntp_fmt_ts(reftime));
offset += 8;
} /* if tree */
@@ -979,7 +978,7 @@ dissect_a11( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_bytes_format(a11_tree, hf_a11_ident, tvb, offset, 8,
reftime,
"Identification: %s",
- ntp_fmt_ts(reftime, buff));
+ ntp_fmt_ts(reftime));
offset += 8;
} /* if tree */
@@ -1018,7 +1017,7 @@ dissect_a11( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_bytes_format(a11_tree, hf_a11_ident, tvb, offset, 8,
reftime,
"Identification: %s",
- ntp_fmt_ts(reftime, buff));
+ ntp_fmt_ts(reftime));
offset += 8;
} /* if tree */