|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83886 - trunk/tools/build/v2/engine
From: steven_at_[hidden]
Date: 2013-04-13 18:34:46
Author: steven_watanabe
Date: 2013-04-13 18:34:45 EDT (Sat, 13 Apr 2013)
New Revision: 83886
URL: http://svn.boost.org/trac/boost/changeset/83886
Log:
Fix valgrind errors
Text files modified:
trunk/tools/build/v2/engine/modules.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/tools/build/v2/engine/modules.c
==============================================================================
--- trunk/tools/build/v2/engine/modules.c (original)
+++ trunk/tools/build/v2/engine/modules.c 2013-04-13 18:34:45 EDT (Sat, 13 Apr 2013)
@@ -402,7 +402,7 @@
LIST * * fixed_variables = BJAM_MALLOC( n_variables * sizeof( LIST * ) );
if ( m->fixed_variables )
{
- memcpy( fixed_variables, m->fixed_variables, n_variables * sizeof( LIST * ) );
+ memcpy( fixed_variables, m->fixed_variables, m->num_fixed_variables * sizeof( LIST * ) );
BJAM_FREE( m->fixed_variables );
}
m->fixed_variables = fixed_variables;
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