Skip to content

Commit

Permalink
Fix incorrect magisk metadata in ramdisk
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Aug 11, 2018
1 parent a46c625 commit 190646d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/jni/magiskboot/ramdisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ int cpio_commands(int argc, char *argv[]) {
e->filename = strdup(".backup/.magisk");
e->mode = S_IFREG;
e->data = xmalloc(50);
snprintf(e->data, 50, "KEEPVERITY=%s\nKEEPFORCEENCRYPT=%s\n", cmdv[3], cmdv[4]);
snprintf(e->data, 50, "KEEPVERITY=%s\nKEEPFORCEENCRYPT=%s\n", cmdv[2], cmdv[3]);
e->filesize = strlen(e->data) + 1;
vec_push_back(&back, e);

Expand Down

0 comments on commit 190646d

Please sign in to comment.