commit | a1aa2ba71bcea9955850d72b82046befc5f05b4d | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Fri Apr 05 11:49:02 2019 +0100 |
committer | Andrew Scull <ascull@google.com> | Fri Apr 05 17:21:43 2019 +0100 |
tree | f7bbcc574a57de0c1d3c7f6cc1e686b1d10f8c8a | |
parent | 2b5fbad49cdfcdad3e8771af3f967480eb708a5f [diff] [blame] |
Move from memcpy to memcpy_s. Change-Id: If7d53c6e54428f01f14528c3f281331d308af56a
diff --git a/src/api.c b/src/api.c index ec98c22..a726404 100644 --- a/src/api.c +++ b/src/api.c
@@ -809,7 +809,8 @@ /* Copy data. */ to_msg = to->mailbox.recv; *to_msg = from_msg_replica; - memcpy(to_msg->payload, from->mailbox.send->payload, size); + memcpy_s(to_msg->payload, SPCI_MSG_PAYLOAD_MAX, + from->mailbox.send->payload, size); primary_ret.message.vm_id = to->id; ret = SPCI_SUCCESS;