Commit 190646d5 authored by topjohnwu's avatar topjohnwu

Fix incorrect magisk metadata in ramdisk

parent a46c6252
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment