aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-27 16:38:10 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-27 16:38:10 -0500
commit85770c4b5cb89a8a4420293a2a8b1f0cef851d7e (patch)
tree946daf9aa8600fe192fea6e15af95641e2ea8357
parent68de9dc3de220ab454efe066a805e18358c5f4f2 (diff)
downloadunalf-85770c4b5cb89a8a4420293a2a8b1f0cef851d7e.tar.gz
alf: pad header filename with spaces to match LZ.COM.
-rw-r--r--TODO.txt3
-rw-r--r--src/alf.c1
2 files changed, 1 insertions, 3 deletions
diff --git a/TODO.txt b/TODO.txt
index 9024d8e..1c9f2a2 100644
--- a/TODO.txt
+++ b/TODO.txt
@@ -5,9 +5,6 @@
-tz - use zero timestamp
-tg - use GMT for timestamps rather than local time
-- pad filename field in header with 0x20, so our .alf
- files will be identical to those made by DZ.COM.
-
- unalf -f option (fix, by removing the junk at EOF if found)
- rename project. calling it "unalf" when it contains both alf and
diff --git a/src/alf.c b/src/alf.c
index 725b109..9c25068 100644
--- a/src/alf.c
+++ b/src/alf.c
@@ -149,6 +149,7 @@ void create_header(void) {
output_buf[0] = 0x1a;
output_buf[1] = 0x0f;
+ memset(&output_buf[3], 0x20, 13);
strncat((char *)&output_buf[2], hdr_filename, 13);
output_buf[14] = 0x00;
store_quad(15, 0); /* compressed size, fill in later */