aboutsummaryrefslogtreecommitdiff
path: root/src/crunch.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-12-02 21:22:32 -0500
committerB. Watson <urchlay@slackware.uk>2025-12-02 21:22:32 -0500
commitd2085ad7f2db7310f99726c5c3b1c9019f3947cc (patch)
tree3f0cfff609723d101ff113cc757d6ecaeab610b8 /src/crunch.c
parent65145d492797a8c5f5e95098b49ea4b00f49be4c (diff)
downloadalftools-d2085ad7f2db7310f99726c5c3b1c9019f3947cc.tar.gz
unalf: warn about all-zero ALF header dates.
Diffstat (limited to 'src/crunch.c')
-rw-r--r--src/crunch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crunch.c b/src/crunch.c
index ada46e8..5f21223 100644
--- a/src/crunch.c
+++ b/src/crunch.c
@@ -121,6 +121,7 @@ void inc_output_len(void) {
fprintf(stderr, "%s: fatal: compressed file would be >16MB.\n", self);
exit(1);
}
+ output_buf[output_len] = 0;
}
void append_bit(int bit) {