Wireshark-bugs: [Wireshark-bugs] [Bug 4302] ctime() is not thread safe and it's obsolete.

Date: Mon, 7 Dec 2009 18:14:18 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4302

--- Comment #1 from Guy Harris <guy@xxxxxxxxxxxx> 2009-12-07 18:14:13 PST ---
According to

    http://msdn.microsoft.com/en-us/library/a442x3ye(VS.80).aspx

Visual Studio 2005 has a localtime_s() routine which takes, as arguments, a
pointer to a "struct tm" and a pointer to a time_t (and, helpfully, takes those
arguments *in the opposite order from the order in which localtime_r() takes
them*).  It also might, or might not (depending on whom you believe on that
page), call an error handler (the default version of which causes an app crash)
if the input time value is out of range.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.