Wireshark mailing list archives

Re: [Wireshark-dev] localtime_r() in gtk/timeshift_dlg.c


From: Edwin Groothuis <wireshark () mavetju org>
Date: Tue, 16 Aug 2011 22:37:07 +0000 (UTC)

Gisle Vanem <gisle.vanem@...> writes:


This:
  #ifdef _MSC_VER
  #define localtime_r(a, b) memcpy((b), localtime((a)), sizeof(struct tm));
  #endif

doesn't look so safe. We should maybe use the localtime_r() in
wsutil/strptime.c?

It is time to make localtime_r in wsutil/strptime.c non-static and prototype it
in wsutil/strptime.h!

Edwin

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: