Skip to content

Commit

Permalink
bootloader: fix seeking the now unique_fd for bootloader message offset
Browse files Browse the repository at this point in the history
Change-Id: I51b993f730168c87dfed6df5bd6c2ad4339d8c88
  • Loading branch information
invisiblek committed Sep 10, 2016
1 parent 7676814 commit 95be77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static int set_bootloader_message_block(const bootloader_message* in,
}

#ifdef BOARD_RECOVERY_BLDRMSG_OFFSET
fseek(f, BOARD_RECOVERY_BLDRMSG_OFFSET, SEEK_SET);
lseek(fd.get(), BOARD_RECOVERY_BLDRMSG_OFFSET, SEEK_SET);
#endif

size_t written = 0;
Expand Down

0 comments on commit 95be77d

Please sign in to comment.