[Boost-bugs] [Boost C++ Libraries] #12460: Switch from std::getenv to _dupenv_s

Subject: [Boost-bugs] [Boost C++ Libraries] #12460: Switch from std::getenv to _dupenv_s
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-15 12:25:50

#12460: Switch from std::getenv to _dupenv_s
 Reporter: anonymous | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.61.0 | Severity: Optimization
 Keywords: Serialization |
 5>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. (AccessCommon.cpp)
 5> C:\Program Files (x86)\Microsoft Visual Studio
 11.0\VC\include\stdlib.h(449) : see declaration of 'getenv'

 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.

Ticket URL: <https://svn.boost.org/trac/boost/ticket/12460>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC