diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-12-12 17:15:22 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-12-12 17:15:22 -0500 |
| commit | c0bc883bcfca5791ea64d488caf359a2c8de4360 (patch) | |
| tree | bc72765712fd1616b68f3e72654df9ee2a289714 /src/extract.c | |
| parent | 1fa2b732b7b6c1539995fa40605d9bcf807ac357 (diff) | |
| download | alftools-c0bc883bcfca5791ea64d488caf359a2c8de4360.tar.gz | |
Do not print unprintable characters in filenames.
Diffstat (limited to 'src/extract.c')
| -rw-r--r-- | src/extract.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/extract.c b/src/extract.c index 9b864c3..a604805 100644 --- a/src/extract.c +++ b/src/extract.c @@ -112,8 +112,11 @@ void write_split_file(void) { strncpy(splitname, out_filename, 13); strncat(splitname, ".ALF", 6); - if(!opts.quiet) - printf("Writing %s\n", splitname); + if(!opts.quiet) { + fputs("Writing ", stdout); + safe_print_filename(splitname, stdout); + putchar('\n'); + } len = getquad(alf_hdr_compsize0); @@ -167,7 +170,9 @@ void extract_alf(void) { } if(!opts.quiet) { - printf("%s %s\n", opts.testonly ? "Testing" : "Uncrunching", out_filename); + printf("%s ", opts.testonly ? "Testing" : "Uncrunching"); + safe_print_filename(out_filename, stdout); + putchar('\n'); } if(opts.extract_to_stdout) { |
