aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-kismet.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-12-08 07:41:43 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-12-08 07:41:43 +0000
commit62c3372576727d699c52595de0f8a6a7673740c3 (patch)
tree400abceefb17e19d5f03950f933e1d8a8cd8e1c4 /epan/dissectors/packet-kismet.c
parentc70da4bd10afb01c56bc3280085a5b6b9bbd6e7b (diff)
From Jakub Zawadzki:
ctime() is not thread safe and it's obsolete. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4302 svn path=/trunk/; revision=31200
Diffstat (limited to 'epan/dissectors/packet-kismet.c')
-rw-r--r--epan/dissectors/packet-kismet.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/epan/dissectors/packet-kismet.c b/epan/dissectors/packet-kismet.c
index 3e88a2b1e0..ec2e465656 100644
--- a/epan/dissectors/packet-kismet.c
+++ b/epan/dissectors/packet-kismet.c
@@ -249,12 +249,7 @@ dissect_kismet(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
/*
* Format ascii representaion of time
*/
- ptr = ctime(&t);
- /*
- * Delete final '\n'
- */
- ptr[strlen(ptr) - 1] = 0;
-
+ ptr = abs_time_secs_to_str(t);
proto_tree_add_text(reqresp_tree, tvb, offset,
tokenlen, "Time: %s", ptr);
}