Commit 18dac1b8 authored by George Zagaris's avatar George Zagaris
Browse files

BUGFIX: Fix erroneous array access

Fixed issue wherein an array of size 3, index space:[0,2] was
accessing element at position 3 outside the array instead of 2.

Change-Id: Ic88a972fd0ace6cf7cc5c029dba331b0db9bfdd0
parent 6950c8c6
......@@ -96,7 +96,7 @@ int main( int argc, char **argv )
void SetPulse()
{
Pulse.origin[0] = Pulse.origin[1] = Pulse.origin[2] = -1.0;
Pulse.width[0] = Pulse.width[1] = Pulse.width[3] = 6.0;
Pulse.width[0] = Pulse.width[1] = Pulse.width[2] = 6.0;
Pulse.amplitude = 0.0001;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment