[cig-commits] commit: Fixed a memory bug in the historicalSwarmTrajectory
Mercurial
hg at geodynamics.org
Mon Nov 24 11:29:01 PST 2008
changeset: 30:727a44fd8e08
user: BelindaMay
date: Fri Oct 12 06:54:18 2007 +0000
files: DrawingObjects/src/HistoricalSwarmTrajectory.c
description:
Fixed a memory bug in the historicalSwarmTrajectory
diff -r 5e802cd52184 -r 727a44fd8e08 DrawingObjects/src/HistoricalSwarmTrajectory.c
--- a/DrawingObjects/src/HistoricalSwarmTrajectory.c Thu Oct 11 08:05:31 2007 +0000
+++ b/DrawingObjects/src/HistoricalSwarmTrajectory.c Fri Oct 12 06:54:18 2007 +0000
@@ -39,7 +39,7 @@
*+ Patrick Sunter
*+ Greg Watson
*+
-** $Id: HistoricalSwarmTrajectory.c 740 2007-10-11 08:05:31Z SteveQuenette $
+** $Id: HistoricalSwarmTrajectory.c 741 2007-10-12 06:54:18Z BelindaMay $
**
**~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -125,7 +125,7 @@ void _lucHistoricalSwarmTrajectory_Init(
self->particleExtHandle = ExtensionManager_Add(
swarm->particleExtensionMgr,
self->type,
- sizeof( lucHistoricalSwarmTrajectory_ParticleExt ) + ( historySteps+1 )*sizeof( Coord ) );
+ sizeof( lucHistoricalSwarmTrajectory_ParticleExt ) + ( historySteps+3 )*sizeof( Coord ) );
lucColour_FromString( &self->colour, colourName );
More information about the CIG-COMMITS
mailing list