Fix IPS Patch, still without re-allocation

This commit is contained in:
brenodantas10 2019-08-28 01:52:26 -03:00
parent be493daf72
commit 33c681c0c7

View File

@ -436,7 +436,7 @@ static enum patch_error ips_apply_patch(
uint8_t **targetdata_fix, uint64_t *targetlength)
{
uint32_t offset = 5;
uint8_t* target_data=*target_data_fix;
uint8_t* targetdata=*targetdata_fix;
if (patchlen < 8 ||
patchdata[0] != 'P' ||
patchdata[1] != 'A' ||