Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95be77d7 authored by Dan Pasanen's avatar Dan Pasanen
Browse files

bootloader: fix seeking the now unique_fd for bootloader message offset

Change-Id: I51b993f730168c87dfed6df5bd6c2ad4339d8c88
parent 7676814f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;