diff options
-rw-r--r-- | src/export/extract_version_2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/export/extract_version_2.c b/src/export/extract_version_2.c index fe85252..6686dca 100644 --- a/src/export/extract_version_2.c +++ b/src/export/extract_version_2.c | |||
@@ -29,7 +29,8 @@ static uint8_t mantra_in[] = { 0x68, 0x35, 0x2d, 0x6c }; | |||
29 | int main( int args, char **argv ) | 29 | int main( int args, char **argv ) |
30 | { | 30 | { |
31 | int filenum = 0, run = 1; | 31 | int filenum = 0, run = 1; |
32 | size_t offset = 0, oldoffset = -1, reported = 0, enc_len = 32; | 32 | size_t offset = 0, reported = 0, enc_len = 32; |
33 | ssize_t oldoffset = -1; | ||
33 | uint8_t mantra[4], id0, id5, *mappedfile; | 34 | uint8_t mantra[4], id0, id5, *mappedfile; |
34 | MAP map; | 35 | MAP map; |
35 | 36 | ||
@@ -87,9 +88,8 @@ int main( int args, char **argv ) | |||
87 | if( oldoffset != -1 ) | 88 | if( oldoffset != -1 ) |
88 | { | 89 | { |
89 | uint8_t *mf = mappedfile + oldoffset, df[128]; | 90 | uint8_t *mf = mappedfile + oldoffset, df[128]; |
90 | size_t filename_len, header_len; | 91 | size_t filename_len, header_len, i; |
91 | char filename_template[32], filename[32]; | 92 | char filename_template[32], filename[32]; |
92 | int i; | ||
93 | 93 | ||
94 | /* De-"crypt" obfuscation to our header copy */ | 94 | /* De-"crypt" obfuscation to our header copy */ |
95 | for( i=0; i<enc_len; ++i) | 95 | for( i=0; i<enc_len; ++i) |