Prefer assignment to memcpy when either will do.
[bpt/emacs.git] / src / xfaces.c
index aee5158..c113c1a 100644 (file)
@@ -661,7 +661,7 @@ x_create_gc (struct frame *f,
             XGCValues *xgcv)
 {
   GC gc = xmalloc (sizeof *gc);
-  memcpy (gc, xgcv, sizeof (XGCValues));
+  *gc = *xgcv;
   return gc;
 }