diff options
| author | jakob <jakob@memeware.net> | 2017-01-12 17:09:17 -0500 |
|---|---|---|
| committer | jakob <jakob@memeware.net> | 2017-01-12 17:09:17 -0500 |
| commit | 43e539561a4ea95274468b78735555d6e89fdfd9 (patch) | |
| tree | 4a005aed01dc34c40b4fe5657d2b155ea4231e85 /src/main.c | |
| parent | 350b126eef468c7c8d66c72100d8a3c76e9afec1 (diff) | |
Finished implementation of file decryption. There are still many memory corruption bugs and a segfault is not uncommon.
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -97,10 +97,9 @@ uint64_t get_table_offset(FILE *archive, uint8_t archive_version) { fprintf(stderr, "Minor version not implemented.\n"); fclose(archive); } - /* The read table_offset is actually an offset to the real - table offset. XP3 Version 2 is a little strange. */ + /* The read table_offset is an offset to the real table offset. */ fseek(archive, table_offset, SEEK_SET); - /* Flags and size of table are ignored in the parsing process. */ + /* Table flags and size are ignored in the parsing process. */ fseek(archive, sizeof(uint8_t) + sizeof(uint64_t), SEEK_CUR); fread(&table_offset, sizeof(uint64_t), 1, archive); return table_offset; |