summaryrefslogtreecommitdiffstats
path: root/src/server/ingen_lv2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/ingen_lv2.cpp')
-rw-r--r--src/server/ingen_lv2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp
index 2f845dd2..9c688b18 100644
--- a/src/server/ingen_lv2.cpp
+++ b/src/server/ingen_lv2.cpp
@@ -144,9 +144,9 @@ public:
} else if (_patch_port->is_a(PortType::CONTROL)) {
((float*)_buffer)[0] = patch_buf->samples()[0];
} else {
- memcpy(patch_buf->atom(),
- _buffer,
- sizeof(LV2_Atom) + ((LV2_Atom*)_buffer)->size);
+ memcpy(_buffer,
+ patch_buf->atom(),
+ sizeof(LV2_Atom) + patch_buf->atom()->size);
}
}