mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-18 17:14:28 -04:00
sprofile: various correctness fixes.
This commit is contained in:
parent
2a0b99d9f9
commit
4e92687cab
6 changed files with 24 additions and 4 deletions
|
@ -149,7 +149,7 @@ namespace ams::crypto::impl {
|
|||
|
||||
/* Copy in any leftover data. */
|
||||
if (const auto left = size % BlockSize; left > 0) {
|
||||
std::memcpy(m_y, cur_block, size);
|
||||
std::memcpy(m_y, cur_block, left);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue