diff options
author | David Robillard <d@drobilla.net> | 2008-10-13 03:02:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-10-13 03:02:24 +0000 |
commit | 3256a7d9742422e248ce7e763a5adeb855552499 (patch) | |
tree | 8e5f72b587e7bf20ed3376386b67bef06ce8caca /src | |
parent | b2d51e16571190becea1476080cff1b0a258a4f6 (diff) | |
download | ingen-3256a7d9742422e248ce7e763a5adeb855552499.tar.gz ingen-3256a7d9742422e248ce7e763a5adeb855552499.tar.bz2 ingen-3256a7d9742422e248ce7e763a5adeb855552499.zip |
Fix off-by-1 memory error.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1670 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/ConnectionImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/ConnectionImpl.cpp b/src/engine/ConnectionImpl.cpp index 53cef102..eea81510 100644 --- a/src/engine/ConnectionImpl.cpp +++ b/src/engine/ConnectionImpl.cpp @@ -175,7 +175,7 @@ ConnectionImpl::process(ProcessContext& context) assert(src_port()->poly() == dst_port()->poly()); const size_t copy_size = std::min(src_port()->buffer_size(), dst_port()->buffer_size()); for (uint32_t i=0; i < src_port()->poly(); ++i) { - dst_port()->buffer(i)->copy(src_port()->buffer(i), 0, copy_size); + dst_port()->buffer(i)->copy(src_port()->buffer(i), 0, copy_size-1); } } else if (_mode == MIX) { assert(type() == DataType::AUDIO || type() == DataType::CONTROL); |