diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-06-09 16:30:17 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-06-18 15:05:38 +0300 |
commit | d326f16dd40013e8bea639ff95c2b249e7867e5e (patch) | |
tree | e4330b63b6aed86434fb49edd54bf4f3d452c9e4 /tests | |
parent | 8e069039aaa63fab272971920212864da67a0720 (diff) |
Eliminate the use of *_s() functions on Windows
Diffstat (limited to 'tests')
-rw-r--r-- | tests/process/driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 <stdlib.h> // getenv(), setenv(), _putenv_s() +#include <stdlib.h> // getenv(), setenv(), _putenv() #include <ios> #include <string> @@ -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 ("..")); |