mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-27 20:27:12 +09:00
Replace ftime() with ftime_s()
This commit is contained in:
@@ -67,7 +67,7 @@ sodium_hrtime(void)
|
||||
#ifdef _WIN32
|
||||
struct _timeb tb;
|
||||
|
||||
_ftime(&tb);
|
||||
_ftime_s(&tb);
|
||||
tv.tv_sec = (long) tb.time;
|
||||
tv.tv_usec = ((int) tb.millitm) * 1000;
|
||||
ret = 0;
|
||||
|
||||
Reference in New Issue
Block a user