diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-28 02:04:59 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-11-28 02:04:59 -0500 |
| commit | 557f14c7abf3f72fc3b2f70c1402acde5a4d524f (patch) | |
| tree | b1d1ffbf0fe86486a655c8717dbd293d24cda01a | |
| parent | c43708f2027e248c56031a797fa33636b5130e51 (diff) | |
| download | alftools-557f14c7abf3f72fc3b2f70c1402acde5a4d524f.tar.gz | |
Properly space-fill filename field.
| -rw-r--r-- | src/alf.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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(); |
