Skip to content

Commit aba6279

Browse files
committed
fix wrong code
1 parent 519b153 commit aba6279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mitool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ static int calc_img_crc()
556556

557557
memset(path, 0, sizeof(path));
558558
snprintf(path, sizeof(path), "/dev/mtdblock%d", bdata);
559-
fd = fopen(path, "rb");
559+
fd = fopen(path, "wb");
560560
if (fd < 0)
561561
return -1;
562562
fseek(fd, 4, SEEK_SET);

0 commit comments

Comments
 (0)