mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-14 03:17:54 +00:00
Some code adjustments
This commit is contained in:
@@ -20,7 +20,7 @@ void hexpatch(const char *image, const char *from, const char *to) {
|
||||
int patternsize = strlen(from) / 2, patchsize = strlen(to) / 2;
|
||||
size_t filesize;
|
||||
uint8_t *file, *pattern, *patch;
|
||||
mmap_rw(image, (void **) &file, &filesize);
|
||||
mmap_rw(image, file, filesize);
|
||||
pattern = (uint8_t *) xmalloc(patternsize);
|
||||
patch = (uint8_t *) xmalloc(patchsize);
|
||||
hex2byte((uint8_t *) from, pattern);
|
||||
|
||||
Reference in New Issue
Block a user