diff options
Diffstat (limited to 'ingen')
-rw-r--r-- | ingen/Atom.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ingen/Atom.hpp b/ingen/Atom.hpp index 8e652e5e..3d05d1ac 100644 --- a/ingen/Atom.hpp +++ b/ingen/Atom.hpp @@ -71,7 +71,7 @@ public: _body.ptr = (LV2_Atom*)malloc(sizeof(LV2_Atom) + _atom.size); memcpy(_body.ptr, copy._body.ptr, sizeof(LV2_Atom) + _atom.size); } else { - memcpy(&_body.val, ©._body.val, sizeof(LV2_Atom)); + memcpy(&_body.val, ©._body.val, sizeof(_body.val)); } } @@ -85,7 +85,7 @@ public: _body.ptr = (LV2_Atom*)malloc(sizeof(LV2_Atom) + _atom.size); memcpy(_body.ptr, other._body.ptr, sizeof(LV2_Atom) + _atom.size); } else { - memcpy(&_body.val, &other._body.val, sizeof(LV2_Atom)); + memcpy(&_body.val, &other._body.val, sizeof(_body.val)); } return *this; } |