diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-08-02 14:12:09 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-08-02 14:12:09 -0400 |
commit | 1a113e1144113348e04cbe39fa81a448049e82a0 (patch) | |
tree | 34720d5850744fd51f5bd1f4165cb2ff7c2365ad | |
parent | 7093aa58046f8685025b0198708e7768733a017d (diff) | |
download | seabios-1a113e1144113348e04cbe39fa81a448049e82a0.tar.gz |
Fix bug in CBFS file walking with compressed files.
The file walking code was incorrectly using the uncompressed file size
when searching for the next file.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | src/coreboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coreboot.c b/src/coreboot.c index 7f7b322..983a2b5 100644 --- a/src/coreboot.c +++ b/src/coreboot.c @@ -407,7 +407,7 @@ coreboot_cbfs_init(void) } romfile_add(&cfile->file); - fhdr = (void*)ALIGN((u32)cfile->data + cfile->file.size + fhdr = (void*)ALIGN((u32)cfile->data + cfile->rawsize , be32_to_cpu(hdr->align)); } } |