From 5ac05edbb64b89741728ba006b0ce681a5d51595 Mon Sep 17 00:00:00 2001 From: jakob Date: Sat, 1 Apr 2017 15:47:28 -0400 Subject: Fixed segmentation fault on invalid paths, cleaned up code --- src/header.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/header.h') 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. */ }; -- cgit v1.3