From d326f16dd40013e8bea639ff95c2b249e7867e5e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 9 Jun 2016 16:30:17 +0300 Subject: Eliminate the use of *_s() functions on Windows --- tests/process/driver.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/process') diff --git a/tests/process/driver.cxx b/tests/process/driver.cxx index efb4ca3..741340c 100644 --- a/tests/process/driver.cxx +++ b/tests/process/driver.cxx @@ -2,7 +2,7 @@ // copyright : Copyright (c) 2014-2016 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file -#include // getenv(), setenv(), _putenv_s() +#include // getenv(), setenv(), _putenv() #include #include @@ -306,7 +306,7 @@ try #ifndef _WIN32 assert (setenv ("PATH", paths.c_str (), 1) == 0); #else - assert (_putenv_s ("PATH", paths.c_str ()) == 0); + assert (_putenv (("PATH=" + paths).c_str ()) == 0); #endif dir_path::current (fp.directory () / dir_path ("..")); -- cgit v1.1