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 fbc375f0de
commit 7ffd624248
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!");