diff target-utils/libcommon/cmd_memdump_machine.c @ 99:9214118ae941

target-utils: use of bcopy() changed to memcpy()
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 01 Nov 2016 00:05:31 +0000
parents e7502631a0f9
children
line wrap: on
line diff
--- a/target-utils/libcommon/cmd_memdump_machine.c	Mon Oct 31 23:55:28 2016 +0000
+++ b/target-utils/libcommon/cmd_memdump_machine.c	Tue Nov 01 00:05:31 2016 +0000
@@ -36,7 +36,7 @@
 		srbuf[2] = addr >> 16;
 		srbuf[3] = addr >> 8;
 		srbuf[4] = addr;
-		bcopy(addr, srbuf + 5, 0x80);
+		memcpy(srbuf + 5, addr, 0x80);
 		cksum = 0;
 		for (i = 0; i < 0x85; i++)
 			cksum += srbuf[i];