Skip to content

Commit

Permalink
Use memcpy(3) instead of memmove(3)
Browse files Browse the repository at this point in the history
Thanks to Nicolas Boichat for the idea.
  • Loading branch information
LudovicRousseau committed Apr 8, 2024
1 parent a1c039e commit efdd04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ RESPONSECODE CmdPowerOn(unsigned int reader_index, unsigned int * nlength,

*nlength = atr_len;

memmove(buffer, resp+10, atr_len);
memcpy(buffer, resp+10, atr_len);

return return_value;
} /* CmdPowerOn */
Expand Down

0 comments on commit efdd04b

Please sign in to comment.