summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-04-19 23:54:05 +0000
committerCarl Hetherington <carl@carlh.net>2012-04-19 23:54:05 +0000
commitcfbc2e24387d3b68aa2bb8c45b593fcc1a20db73 (patch)
treec349b7cca651bed286848691f5e3598e49ea0b97
parent55ed8756bbf38a9f2f7bb73ea40172474fd174ea (diff)
Fix thinko causing possible memory corruption.
git-svn-id: svn://localhost/ardour2/branches/3.0@12040 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/evoral/src/Curve.cpp2
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;