Prefer memcpy() over struct-copy.

This commit is contained in:
Markus F.X.J. Oberhumer
2009-04-19 18:44:17 +02:00
parent 4ca8569488
commit aaef4bee27
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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;
}
}