service: Use ReadBufferSpan where it is trivial to do so

This commit is contained in:
ameerj 2022-12-25 13:42:32 -05:00
parent 399b6d3a0c
commit db9a523aae
31 changed files with 78 additions and 77 deletions

View file

@ -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!");