Boost C++ Libraries: Ticket #12460: Switch from std::getenv to _dupenv_s https://svn.boost.org/trac10/ticket/12460 <p> 5&gt;C:\Boost\boost_1_61_0\boost/archive/tmpdir.hpp(35): error C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. (<a class="missing wiki">AccessCommon</a>.cpp) 5&gt; C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdlib.h(449) : see declaration of 'getenv' </p> <p> It would be good to update the code to use _dupenv_s. I'rather not use _CRT_SECURE_NO_WARNINGS since that covers over sins in other code. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12460 Trac 1.4.3 Robert Ramey Tue, 01 Nov 2016 22:05:29 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12460#comment:1 https://svn.boost.org/trac10/ticket/12460#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> this is not part of the standard library. So making this change would break serialization tests for all the other compilers. </p> <p> Note that this is only used for the serialization library tests - so it shouldn't create a security issue in user code. </p> Ticket