Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81694 - trunk/boost/coroutine/detail
From: oliver.kowalke_at_[hidden]
Date: 2012-12-03 09:17:13


Author: olli
Date: 2012-12-03 09:17:12 EST (Mon, 03 Dec 2012)
New Revision: 81694
URL: http://svn.boost.org/trac/boost/changeset/81694

Log:
coroutine: fix memset issue

Text files modified:
   trunk/boost/coroutine/detail/stack_allocator_posix.hpp | 2 +-
   trunk/boost/coroutine/detail/stack_allocator_windows.hpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/coroutine/detail/stack_allocator_posix.hpp
==============================================================================
--- trunk/boost/coroutine/detail/stack_allocator_posix.hpp (original)
+++ trunk/boost/coroutine/detail/stack_allocator_posix.hpp 2012-12-03 09:17:12 EST (Mon, 03 Dec 2012)
@@ -126,7 +126,7 @@
         ::close( fd);
         if ( ! limit) throw std::bad_alloc();
 
- std::memset( limit, size_, '\0');
+ std::memset( limit, '\0', size_);
 
         // conforming to POSIX.1-2001
         const int result( ::mprotect( limit, pagesize(), PROT_NONE) );

Modified: trunk/boost/coroutine/detail/stack_allocator_windows.hpp
==============================================================================
--- trunk/boost/coroutine/detail/stack_allocator_windows.hpp (original)
+++ trunk/boost/coroutine/detail/stack_allocator_windows.hpp 2012-12-03 09:17:12 EST (Mon, 03 Dec 2012)
@@ -123,7 +123,7 @@
         void * limit = ::VirtualAlloc( 0, size_, MEM_COMMIT, PAGE_READWRITE);
         if ( ! limit) throw std::bad_alloc();
 
- std::memset( limit, size_, '\0');
+ std::memset( limit, '\0', size_);
 
         DWORD old_options;
         const BOOL result = ::VirtualProtect(


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