FIX: issue #484 (Copying bytes to memory allocated to a pointer in a structure give incorrect results)