mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-29 12:59:37 -04:00
service: Use ReadBufferSpan where it is trivial to do so
This commit is contained in:
@@ -121,8 +121,8 @@ private:
|
||||
}
|
||||
|
||||
void ImportTicket(Kernel::HLERequestContext& ctx) {
|
||||
const auto ticket = ctx.ReadBuffer();
|
||||
const auto cert = ctx.ReadBuffer(1);
|
||||
const auto ticket = ctx.ReadBufferSpan();
|
||||
[[maybe_unused]] const auto cert = ctx.ReadBufferSpan(1);
|
||||
|
||||
if (ticket.size() < sizeof(Core::Crypto::Ticket)) {
|
||||
LOG_ERROR(Service_ETicket, "The input buffer is not large enough!");
|
||||
|
||||
Reference in New Issue
Block a user