managed_bytes: fix copy size in move constructor

Signed-off-by: Paweł Dziepak <pdziepak@scylladb.com>
This commit is contained in:
Paweł Dziepak
2015-12-09 01:25:03 +01:00
committed by Avi Kivity
parent d68a8b5349
commit 8ba66bb75d

View File

@@ -57,7 +57,7 @@ struct blob_storage {
if (next) {
next->backref = &next;
}
memcpy(data, o.data, size);
memcpy(data, o.data, frag_size);
}
} __attribute__((packed));