Commit 66bd81d9 by Richard Kenner

(bc_seg_write): Don't make unaligned reference to seg->data.

From-SVN: r6785
parent 00f07fb9
...@@ -361,7 +361,7 @@ bc_seg_write (seg, file) ...@@ -361,7 +361,7 @@ bc_seg_write (seg, file)
if (i % 8 != 0) if (i % 8 != 0)
putc ('\n', file); putc ('\n', file);
offset = *(int *) (seg->data + i); bcopy (seg->data + i, &offset, sizeof (int));
i += sizeof (int) - 1; i += sizeof (int) - 1;
BC_WRITE_RELOC_ENTRY (segreloc, file, offset); BC_WRITE_RELOC_ENTRY (segreloc, file, offset);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment