From 33eb09f58e87a67dfcfbe2fdd0e8e6c09bb33fa0 Mon Sep 17 00:00:00 2001 From: Caitlin Ross Date: Mon, 19 Jul 2021 15:24:10 -0400 Subject: [PATCH] plugin example windows fix --- examples/plugins/engine/ExampleWritePlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/plugins/engine/ExampleWritePlugin.cpp b/examples/plugins/engine/ExampleWritePlugin.cpp index c1640cfb08..6a54485880 100644 --- a/examples/plugins/engine/ExampleWritePlugin.cpp +++ b/examples/plugins/engine/ExampleWritePlugin.cpp @@ -29,7 +29,7 @@ std::string now() #ifdef _WIN32 time_t rawTime; std::time(&rawTime); - timeInfo = std::localtime(&rawTime); + timeInfo = std::localtime_s(&rawTime); #else timeval curTime; gettimeofday(&curTime, nullptr);