aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-12-03 15:50:50 -0500
committerB. Watson <urchlay@slackware.uk>2025-12-03 15:50:50 -0500
commit4161e8d4ee1173d6feb01ae7ad6d7aeabb7c93b4 (patch)
tree47df82fbd5dd5b694d5e2a1ddeac5224964954d9
parent7b5cf6d1679bf0fa3381fb0fdd4f10ec48a08244 (diff)
downloadalftools-4161e8d4ee1173d6feb01ae7ad6d7aeabb7c93b4.tar.gz
unalf: do not exit on truncation error (downgrade to a warning).
-rw-r--r--src/asmcode.c2
-rw-r--r--src/extract.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/asmcode.c b/src/asmcode.c
index 9cdf2f8..1e31c6c 100644
--- a/src/asmcode.c
+++ b/src/asmcode.c
@@ -210,7 +210,7 @@ L770F:
jmp(L779B);
/* ---------------------------------------------------------------------------- */
L7712:
- truncated_err(); /* exits! */
+ truncated_err(); /* does not exit */
/* ---------------------------------------------------------------------------- */
L771C:
tay();
diff --git a/src/extract.c b/src/extract.c
index 98523db..ff8d780 100644
--- a/src/extract.c
+++ b/src/extract.c
@@ -161,8 +161,7 @@ void chksum_err(void) {
}
void truncated_err(void){
- fprintf(stderr, "%s: fatal: compressed data is truncated, EOF before end marker\n", self);
- exit(1);
+ fprintf(stderr, "%s: warning: compressed data is truncated, EOF before end marker\n", self);
}
void stack_underrun(void){