seek the correct file when decompressing
This commit is contained in:
parent
cdb9a5edc8
commit
a337a43f69
1 changed files with 1 additions and 1 deletions
2
exhal.c
2
exhal.c
|
@ -48,7 +48,7 @@ int main (int argc, char **argv) {
|
|||
outputsize = unpack_from_file(infile, fileoffset, unpacked);
|
||||
|
||||
// write the uncompressed data to the file
|
||||
fseek(infile, 0, SEEK_SET);
|
||||
fseek(outfile, 0, SEEK_SET);
|
||||
fwrite((const void*)unpacked, 1, outputsize, outfile);
|
||||
|
||||
printf("\nUncompressed size: %d bytes\n", outputsize);
|
||||
|
|
Loading…
Reference in a new issue