diff --git a/src/compress_ucl.cpp b/src/compress_ucl.cpp index 38b5d7dc..9e3a9048 100644 --- a/src/compress_ucl.cpp +++ b/src/compress_ucl.cpp @@ -120,7 +120,7 @@ int upx_ucl_compress ( const upx_bytep src, unsigned src_len, ucl_compress_config_t cconf; cconf.reset(); if (cconf_parm) - cconf = cconf_parm->conf_ucl; // struct copy + memcpy(&cconf, &cconf_parm->conf_ucl, sizeof(cconf)); // cconf = cconf_parm->conf_ucl; // struct copy ucl_uint *res = cresult->result_ucl.result; // assume no info available - fill in worst case results diff --git a/src/packmast.cpp b/src/packmast.cpp index 82719639..741d110c 100644 --- a/src/packmast.cpp +++ b/src/packmast.cpp @@ -68,8 +68,7 @@ PackMaster::PackMaster(InputFile *f, options_t *o) : saved_opt = o; if (o) { - this->local_options = *o; // struct copy - //memcpy(&this->local_options, o, sizeof(*o)); // struct copy + memcpy(&this->local_options, o, sizeof(*o)); // struct copy opt = &this->local_options; } }