Commit e2aa1185 by Jan Brittenson

(bc_end_function, seg_data): Use bcopy instead of memcpy.

From-SVN: r5538
parent cc5edac6
......@@ -210,7 +210,7 @@ seg_data (seg, data, size)
seg->data = xrealloc (seg->data, seg->alloc);
}
memcpy (seg->data + seg->size, data, size);
bcopy (data, seg->data + seg->size, size);
seg->size += size;
}
......@@ -604,8 +604,7 @@ bc_end_function ()
if (ref->label->defined)
{
addr = ref->label->offset;
memcpy (bytecode->data + ref->offset, /* incest */
(char *) &addr, sizeof addr);
bcopy (&addr, bytecode->data + ref->offset, sizeof addr);
}
/* Free the chains of labelrefs and labeldefs. */
......
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