aboutsummaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-12-03 07:09:04 -0500
committerB. Watson <urchlay@slackware.uk>2025-12-03 07:09:04 -0500
commit221a6c9726a47810fcf8760bcd286aa8f4e4f390 (patch)
tree00e3481730c78d949848181c5cc65bc2a8437d1e /src/io.c
parente43d2a7c9724254f8dff0719bca99ffd5d488e6b (diff)
downloadalftools-221a6c9726a47810fcf8760bcd286aa8f4e4f390.tar.gz
Derp. Make unalf -F option actually work.0.3.0
Diffstat (limited to 'src/io.c')
-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);
}
}