aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index 4ec6105d72d..52598a41ab9 100644
--- a/src/image.c
+++ b/src/image.c
@@ -593,7 +593,7 @@ define_image_type (struct image_type *type, int loaded)
593 /* Make a copy of TYPE to avoid a bus error in a dumped Emacs. 593 /* Make a copy of TYPE to avoid a bus error in a dumped Emacs.
594 The initialized data segment is read-only. */ 594 The initialized data segment is read-only. */
595 struct image_type *p = xmalloc (sizeof *p); 595 struct image_type *p = xmalloc (sizeof *p);
596 memcpy (p, type, sizeof *p); 596 *p = *type;
597 p->next = image_types; 597 p->next = image_types;
598 image_types = p; 598 image_types = p;
599 success = Qt; 599 success = Qt;