Skip to content

Commit

Permalink
Merge pull request #30 from sekaiacg/main
Browse files Browse the repository at this point in the history
kptools: Fix calculation of kpimg length
  • Loading branch information
bmax121 authored Jan 11, 2024
2 parents ec63ea8 + ea86ee6 commit a9c6ee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/kptools.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ int patch_image()
fprintf(stdout, "[-] kptools open file %s error\n", kpimg);
return EXIT_FAILURE;
}
fseek(fimage, 0, SEEK_END);
long kpimg_len = ftell(fimage);
fseek(fkpimg, 0, SEEK_END);
long kpimg_len = ftell(fkpimg);
fseek(fkpimg, 0, SEEK_SET);
fprintf(stdout, "[+] kptools kernel patch image size: 0x%08lx\n", kpimg_len);

Expand Down

0 comments on commit a9c6ee4

Please sign in to comment.