mirror of
https://github.com/TomHarte/CLK.git
synced 2026-01-26 06:16:22 +00:00
Use std::copy_n where it more directly matches intent.
This commit is contained in:
@@ -154,7 +154,7 @@ public:
|
||||
std::cerr << "No BIOS found; attempting to start cartridge directly" << std::endl;
|
||||
} else {
|
||||
has_bios_ = true;
|
||||
std::copy(rom->second.begin(), rom->second.begin() + std::min(sizeof(bios_), rom->second.size()), bios_);
|
||||
std::copy_n(rom->second.begin(), std::min(sizeof(bios_), rom->second.size()), bios_);
|
||||
}
|
||||
page_cartridge();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user