Skip to content

Commit

Permalink
fix wrong code
Browse files Browse the repository at this point in the history
  • Loading branch information
paldier committed Aug 26, 2021
1 parent 519b153 commit aba6279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mitool.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ static int calc_img_crc()

memset(path, 0, sizeof(path));
snprintf(path, sizeof(path), "/dev/mtdblock%d", bdata);
fd = fopen(path, "rb");
fd = fopen(path, "wb");
if (fd < 0)
return -1;
fseek(fd, 4, SEEK_SET);
Expand Down

0 comments on commit aba6279

Please sign in to comment.