aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index c4fa295..294751a 100644
--- a/src/io.c
+++ b/src/io.c
@@ -74,13 +74,13 @@ static void sanity_check_header(long pos) {
if(compsize > (s.st_size - pos)) {
fatal = !(opts.force || opts.listonly);
fprintf(stderr, "%s: %s: compressed size for header #%d is bigger than the rest of the file (truncated?), use -F to override.\n", fatal ? "fatal" : "warning", self, headers_read);
- exit(1);
+ if(fatal) exit(1);
}
if(compsize > origsize * 2) {
fatal = !(opts.force || opts.listonly);
fprintf(stderr, "%s: %s: compressed size for header #%d is over twice the uncompressed size (corrupt?), use -F to override.\n", fatal ? "fatal": "warning", self, headers_read);
- exit(1);
+ if(fatal) exit(1);
}
}