Fixed horrific segfault bug

= Was memcpying size in bits not bytes - D'oh!