diff options
Diffstat (limited to 'bzip2recover.c')
-rw-r--r-- | bzip2recover.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/bzip2recover.c b/bzip2recover.c index 0e2822b..1323b36 100644 --- a/bzip2recover.c +++ b/bzip2recover.c | |||
@@ -7,9 +7,9 @@ | |||
7 | /*-- | 7 | /*-- |
8 | This program is bzip2recover, a program to attempt data | 8 | This program is bzip2recover, a program to attempt data |
9 | salvage from damaged files created by the accompanying | 9 | salvage from damaged files created by the accompanying |
10 | bzip2-0.9.0c program. | 10 | bzip2-0.9.5 program. |
11 | 11 | ||
12 | Copyright (C) 1996-1998 Julian R Seward. All rights reserved. | 12 | Copyright (C) 1996-1999 Julian R Seward. All rights reserved. |
13 | 13 | ||
14 | Redistribution and use in source and binary forms, with or without | 14 | Redistribution and use in source and binary forms, with or without |
15 | modification, are permitted provided that the following conditions | 15 | modification, are permitted provided that the following conditions |
@@ -42,9 +42,9 @@ | |||
42 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 42 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
43 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 43 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
44 | 44 | ||
45 | Julian Seward, Guildford, Surrey, UK. | 45 | Julian Seward, Cambridge, UK. |
46 | jseward@acm.org | 46 | jseward@acm.org |
47 | bzip2/libbzip2 version 0.9.0c of 18 October 1998 | 47 | bzip2/libbzip2 version 0.9.5 of 24 May 1999 |
48 | --*/ | 48 | --*/ |
49 | 49 | ||
50 | /*-- | 50 | /*-- |
@@ -260,6 +260,12 @@ Bool endsInBz2 ( Char* name ) | |||
260 | #define BLOCK_ENDMARK_HI 0x00001772UL | 260 | #define BLOCK_ENDMARK_HI 0x00001772UL |
261 | #define BLOCK_ENDMARK_LO 0x45385090UL | 261 | #define BLOCK_ENDMARK_LO 0x45385090UL |
262 | 262 | ||
263 | |||
264 | UInt32 bStart[20000]; | ||
265 | UInt32 bEnd[20000]; | ||
266 | UInt32 rbStart[20000]; | ||
267 | UInt32 rbEnd[20000]; | ||
268 | |||
263 | Int32 main ( Int32 argc, Char** argv ) | 269 | Int32 main ( Int32 argc, Char** argv ) |
264 | { | 270 | { |
265 | FILE* inFile; | 271 | FILE* inFile; |
@@ -267,11 +273,6 @@ Int32 main ( Int32 argc, Char** argv ) | |||
267 | BitStream* bsIn, *bsWr; | 273 | BitStream* bsIn, *bsWr; |
268 | Int32 currBlock, b, wrBlock; | 274 | Int32 currBlock, b, wrBlock; |
269 | UInt32 bitsRead; | 275 | UInt32 bitsRead; |
270 | UInt32 bStart[20000]; | ||
271 | UInt32 bEnd[20000]; | ||
272 | |||
273 | UInt32 rbStart[20000]; | ||
274 | UInt32 rbEnd[20000]; | ||
275 | Int32 rbCtr; | 276 | Int32 rbCtr; |
276 | 277 | ||
277 | 278 | ||
@@ -281,7 +282,7 @@ Int32 main ( Int32 argc, Char** argv ) | |||
281 | strcpy ( progName, argv[0] ); | 282 | strcpy ( progName, argv[0] ); |
282 | inFileName[0] = outFileName[0] = 0; | 283 | inFileName[0] = outFileName[0] = 0; |
283 | 284 | ||
284 | fprintf ( stderr, "bzip2recover v0.9.0c: extracts blocks from damaged .bz2 files.\n" ); | 285 | fprintf ( stderr, "bzip2recover 0.9.5d: extracts blocks from damaged .bz2 files.\n" ); |
285 | 286 | ||
286 | if (argc != 2) { | 287 | if (argc != 2) { |
287 | fprintf ( stderr, "%s: usage is `%s damaged_file_name'.\n", | 288 | fprintf ( stderr, "%s: usage is `%s damaged_file_name'.\n", |