From ed6115361006240e3c7b02295599e4534cc55a13 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 19 Oct 2013 08:57:20 +0200 Subject: Update internal Boost subset to 1.54.0 --- cutl/details/boost/regex/src/regex_raw_buffer.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cutl/details/boost/regex/src/regex_raw_buffer.cxx') diff --git a/cutl/details/boost/regex/src/regex_raw_buffer.cxx b/cutl/details/boost/regex/src/regex_raw_buffer.cxx index a0c4811..7b06725 100644 --- a/cutl/details/boost/regex/src/regex_raw_buffer.cxx +++ b/cutl/details/boost/regex/src/regex_raw_buffer.cxx @@ -18,6 +18,7 @@ #define BOOST_REGEX_SOURCE +#include #include #include #include @@ -45,7 +46,8 @@ void BOOST_REGEX_CALL raw_storage::resize(size_type n) // allocate and copy data: register pointer ptr = static_cast(::operator new(newsize)); BOOST_REGEX_NOEH_ASSERT(ptr) - std::memcpy(ptr, start, datasize); + if(start) + std::memcpy(ptr, start, datasize); // get rid of old buffer: ::operator delete(start); -- cgit v1.1