diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-27 16:38:10 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-11-27 16:38:10 -0500 |
| commit | 85770c4b5cb89a8a4420293a2a8b1f0cef851d7e (patch) | |
| tree | 946daf9aa8600fe192fea6e15af95641e2ea8357 | |
| parent | 68de9dc3de220ab454efe066a805e18358c5f4f2 (diff) | |
| download | unalf-85770c4b5cb89a8a4420293a2a8b1f0cef851d7e.tar.gz | |
alf: pad header filename with spaces to match LZ.COM.
| -rw-r--r-- | TODO.txt | 3 | ||||
| -rw-r--r-- | src/alf.c | 1 |
2 files changed, 1 insertions, 3 deletions
@@ -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 @@ -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 */ |
