aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-28 02:04:59 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-28 02:04:59 -0500
commit557f14c7abf3f72fc3b2f70c1402acde5a4d524f (patch)
treeb1d1ffbf0fe86486a655c8717dbd293d24cda01a
parentc43708f2027e248c56031a797fa33636b5130e51 (diff)
downloadalftools-557f14c7abf3f72fc3b2f70c1402acde5a4d524f.tar.gz
Properly space-fill filename field.
-rw-r--r--src/alf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/alf.c b/src/alf.c
index fb79fcf..234b169 100644
--- a/src/alf.c
+++ b/src/alf.c
@@ -164,9 +164,8 @@ void create_header(void) {
output_buf[0] = 0x1a;
output_buf[1] = 0x0f;
- memset(&output_buf[3], 0x20, 13);
+ memset(&output_buf[3], 0x20, 13); /* LZ.COM space-fills this field */
strncat((char *)&output_buf[2], hdr_filename, 13);
- output_buf[14] = 0x00;
store_quad(15, 0); /* compressed size, fill in later */
store_quad(19, time);
store_cksum();