diff options
author | Carl Hetherington <carl@carlh.net> | 2012-04-19 23:54:05 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-04-19 23:54:05 +0000 |
commit | cfbc2e24387d3b68aa2bb8c45b593fcc1a20db73 (patch) | |
tree | c349b7cca651bed286848691f5e3598e49ea0b97 /libs | |
parent | 55ed8756bbf38a9f2f7bb73ea40172474fd174ea (diff) |
Fix thinko causing possible memory corruption.
git-svn-id: svn://localhost/ardour2/branches/3.0@12040 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/evoral/src/Curve.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/evoral/src/Curve.cpp b/libs/evoral/src/Curve.cpp index 42f0eee49c..61f00198c1 100644 --- a/libs/evoral/src/Curve.cpp +++ b/libs/evoral/src/Curve.cpp @@ -301,7 +301,7 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen) vec[i] = (lx * (m_num / m_den) + m_num * i * dx_num / (m_den * dx_den)) + c; } } else { - vec[i] = lx; + vec[0] = lx; } return; |