summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/ConnectionImpl.cpp2
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);