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

From-SVN: r6785
This commit is contained in:
Richard Kenner 1994-03-14 08:13:43 -05:00
parent 00f07fb912
commit 66bd81d9d0

View File

@ -361,7 +361,7 @@ bc_seg_write (seg, file)
if (i % 8 != 0)
putc ('\n', file);
offset = *(int *) (seg->data + i);
bcopy (seg->data + i, &offset, sizeof (int));
i += sizeof (int) - 1;
BC_WRITE_RELOC_ENTRY (segreloc, file, offset);