From ab029cd936549fc181f0a3912c36ce0dea587468 Mon Sep 17 00:00:00 2001 From: jakcron Date: Wed, 4 Jul 2018 13:01:12 +0800 Subject: [PATCH] [es] Fix typo in TicketBody. --- lib/libes/source/TicketBody_V2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libes/source/TicketBody_V2.cpp b/lib/libes/source/TicketBody_V2.cpp index a9bd29c..8dba0a3 100644 --- a/lib/libes/source/TicketBody_V2.cpp +++ b/lib/libes/source/TicketBody_V2.cpp @@ -86,7 +86,7 @@ void es::TicketBody_V2::toBytes() memcpy(body->reserved_region, mReservedRegion, ticket::kReservedRegionSize); body->ticket_id = (mTicketId); body->device_id = (mDeviceId); - memcmp(body->rights_id, mRightsId, ticket::kRightsIdSize); + memcpy(body->rights_id, mRightsId, ticket::kRightsIdSize); body->account_id = (mAccountId); body->sect_total_size = (mSectTotalSize); body->sect_header_offset = (mSectHeaderOffset);