diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/cbfstool/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/util.c b/util/cbfstool/util.c index e1da4cb6fc..054436d8ca 100644 --- a/util/cbfstool/util.c +++ b/util/cbfstool/util.c @@ -256,7 +256,7 @@ int add_bootblock(struct rom *rom, const char *filename) } /* Copy the bootblock into place at the end of the file */ - ret = copy_from_fd(fd, ROM_PTR(rom, rom->size - ntohl(rom->header->bootblocksize)), size); + ret = copy_from_fd(fd, ROM_PTR(rom, rom->size - size), size); close(fd); |