|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50980 - sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/detail
From: lists.drrngrvy_at_[hidden]
Date: 2009-02-02 18:43:00
Author: drrngrvy
Date: 2009-02-02 18:43:00 EST (Mon, 02 Feb 2009)
New Revision: 50980
URL: http://svn.boost.org/trac/boost/changeset/50980
Log:
Bug fixes.
Text files modified:
sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/detail/push_options.hpp | 5 ++++-
sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/detail/save_environment.hpp | 11 ++++++-----
2 files changed, 10 insertions(+), 6 deletions(-)
Modified: sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/detail/push_options.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/detail/push_options.hpp (original)
+++ sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/detail/push_options.hpp 2009-02-02 18:43:00 EST (Mon, 02 Feb 2009)
@@ -10,7 +10,10 @@
//#ifdef _MSC_VER
//#pragma warning (disable:)
-//#define _CRT_SECURE_NO_DEPRECATE 1
+// You may want to remove these.
+#define _CRT_SECURE_NO_DEPRECATE 1
+#define _SCL_SECURE_NO_WARNINGS 1
+#define _CRT_SECURE_NO_WARNINGS 1
//#pragma warning (disable:4996)
//#endif
Modified: sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/detail/save_environment.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/detail/save_environment.hpp (original)
+++ sandbox/SOC/2007/cgi/branches/pickmeup/boost/cgi/detail/save_environment.hpp 2009-02-02 18:43:00 EST (Mon, 02 Feb 2009)
@@ -1,4 +1,4 @@
-// -- detail/save_environment.hpp --
+ // -- detail/save_environment.hpp --
//
// Copyright (c) Darren Garvey 2007.
// Distributed under the Boost Software License, Version 1.0.
@@ -55,12 +55,13 @@
if ((*env)[i] == '=')
break;
-#if defined(BOOST_CGI_KEEP_EMPTY_VARS) && BOOST_CGI_KEEP_EMPTY_VARS != 0
+#if defined(BOOST_CGI_KEEP_EMPTY_VARS)
sa.assign(*env, i);
if ((*env)[i+1] != '\0')
- {
- env_map[sa] = sb.clear();
- }
+ sb.assign((*env+i+1), j-i-1);
+ else
+ sb.clear();
+ env_map[sa.c_str()] = sb;
#else
if ((*env)[i+1] != '\0')
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk