summaryrefslogtreecommitdiff
path: root/wiretap/network_instruments.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/network_instruments.c')
-rw-r--r--wiretap/network_instruments.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/network_instruments.c b/wiretap/network_instruments.c
index 19ff6fbba8..fb335f445c 100644
--- a/wiretap/network_instruments.c
+++ b/wiretap/network_instruments.c
@@ -614,6 +614,7 @@ gboolean network_instruments_dump_open(wtap_dumper *wdh, int *err)
/* create the file comment TLV */
{
time(&system_time);
+ /* We trusst the OS not to return a time before the Epoch */
current_time = localtime(&system_time);
memset(&comment, 0x00, sizeof(comment));
g_snprintf(comment, 64, "This capture was saved from Wireshark on %s", asctime(current_time));