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/table.h | |
| parent | 06ef3f15929b4de343f4f749bade08f6b4783d3a (diff) | |
Fixed segmentation fault on invalid paths, cleaned up code
Diffstat (limited to 'src/table.h')
| -rw-r--r-- | src/table.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/table.h b/src/table.h index 1f40390..80ad099 100644 --- a/src/table.h +++ b/src/table.h @@ -27,20 +27,20 @@ /* Structure representing one segment associated with a File entry. */ struct segment { - bool compressed; /* Whether or not the segment is compressed. */ - uint64_t offset; /* Offset to the segment's beginning. */ - uint64_t compressed_size; /* Size of compressed segment. */ + bool compressed; /* Whether or not the segment is compressed. */ + uint64_t offset; /* Offset to the segment's beginning. */ + uint64_t compressed_size; /* Size of compressed segment. */ uint64_t decompressed_size; /* Size of decompressed segment. */ }; /* Structure representing an entry in the archive's table section. */ struct table_entry { - uint32_t key; /* File-specific key for encryption. */ - uint64_t ctime; /* Timestamp of creation time. */ + uint32_t key; /* File-specific key for encryption. */ + uint64_t ctime; /* Timestamp of creation time. */ uint64_t segment_count; /* Number of segments. */ - struct segment **segments; /* Array of associated segments. */ - char *filename; /* String containing file's name. */ - struct table_entry *next; /* Pointer to the next entry. */ + char *filename; /* String containing file's name. */ + struct segment **segments; /* Array of associated segments. */ + struct table_entry *next; /* Pointer to the next entry. */ }; |