Skip to content

Commit

Permalink
Merge pull request #85 from alyssais/memcpy
Browse files Browse the repository at this point in the history
Fix build where memcpy is a macro
  • Loading branch information
dangfan authored May 18, 2024
2 parents 1172620 + 1b30fe6 commit 609b490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applets/oath/oath.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int oath_install(const uint8_t reset) {
static int oath_select(const CAPDU *capdu, RAPDU *rapdu) {
if (P2 != 0x00) EXCEPT(SW_WRONG_P1P2);

memcpy(RDATA, (uint8_t[]){OATH_TAG_VERSION, 3, 0x06, 0x00, 0x00, OATH_TAG_NAME, HANDLE_LEN}, 7);
memcpy(RDATA, ((uint8_t[]){OATH_TAG_VERSION, 3, 0x06, 0x00, 0x00, OATH_TAG_NAME, HANDLE_LEN}), 7);
if (read_attr(OATH_FILE, ATTR_HANDLE, RDATA + 7, HANDLE_LEN) < 0) return -1;
LL = 7 + HANDLE_LEN;

Expand Down

0 comments on commit 609b490

Please sign in to comment.