diff options
| author | jakob <jakob@memeware.net> | 2017-04-01 15:47:28 -0400 |
|---|---|---|
| committer | jakob <jakob@memeware.net> | 2017-04-01 15:47:28 -0400 |
| commit | 5ac05edbb64b89741728ba006b0ce681a5d51595 (patch) | |
| tree | d31d0f396181821bb5bd40fffd6e4c92bb025f7c /src/header.h | |
| parent | 06ef3f15929b4de343f4f749bade08f6b4783d3a (diff) | |
Fixed segmentation fault on invalid paths, cleaned up code
Diffstat (limited to 'src/header.h')
| -rw-r--r-- | src/header.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/header.h b/src/header.h index d45d4b0..19f7fcd 100644 --- a/src/header.h +++ b/src/header.h @@ -27,11 +27,11 @@ /* Structure representing the header section of an XP3 archive. */ struct header { - char magic[11]; /* Identifier for the archive. */ - uint64_t info_offset; /* Offset to `table_size`. */ - uint32_t version; /* Raw value containing the archive version. */ - uint64_t table_size; /* The size of the table section. (?) */ - uint8_t flags; /* A flags variable for the archive. (?) */ + char magic[11]; /* Identifier for the archive. */ + uint64_t info_offset; /* Offset to `table_size`. */ + uint32_t version; /* Raw value containing the archive version. */ + uint64_t table_size; /* The size of the table section. (?) */ + uint8_t flags; /* A flags variable for the archive. (?) */ uint64_t table_offset; /* Offset to the archive table. */ }; |