seek the correct file when decompressing

This commit is contained in:
Devin Acker 2013-06-05 21:37:22 -04:00
parent cdb9a5edc8
commit a337a43f69

View file

@ -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);