Skip to content

Commit

Permalink
Forgot to leave space for header at start.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 9, 2009
1 parent 3cd7142 commit f4473c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/fatelf-glue.c
Expand Up @@ -24,6 +24,9 @@ static int fatelf_glue(const char *out, const char **bins, const int bincount)
else if (bincount > 0xFF)
xfail("Too many binaries (max is 255).");

// pad out some bytes for the header we'll write at the end...
xwrite_zeros(out, outfd, (size_t) offset);

header->magic = FATELF_MAGIC;
header->version = FATELF_FORMAT_VERSION;
header->num_records = bincount;
Expand Down

0 comments on commit f4473c3

Please sign in to comment.