Skip to content

Commit

Permalink
xfpga: fix bitstream metedata static code scanner issues (#1123)
Browse files Browse the repository at this point in the history
  • Loading branch information
anandaravuri committed Jan 28, 2019
1 parent e923cac commit 498c19f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libopae/plugins/xfpga/bitstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ fpga_result __FIXME_MAKE_VISIBLE__ get_interface_id(fpga_handle handle, uint64_t
return FPGA_EXCEPTION;
}

e = memcpy_s(id_h, sizeof(id_h),
e = memcpy_s(id_h, sizeof(uint64_t),
guid, sizeof(uint64_t));
if (EOK != e) {
FPGA_ERR("memcpy_s failed");
Expand All @@ -157,7 +157,7 @@ fpga_result __FIXME_MAKE_VISIBLE__ get_interface_id(fpga_handle handle, uint64_t

*id_h = int64_be_to_le(*id_h);

e = memcpy_s(id_l, sizeof(id_l),
e = memcpy_s(id_l, sizeof(uint64_t),
guid + sizeof(uint64_t), sizeof(uint64_t));
if (EOK != e) {
FPGA_ERR("memcpy_s failed");
Expand Down

0 comments on commit 498c19f

Please sign in to comment.