From c0bc883bcfca5791ea64d488caf359a2c8de4360 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 12 Dec 2025 17:15:22 -0500 Subject: Do not print unprintable characters in filenames. --- src/extract.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/extract.c') 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) { -- cgit v1.2.3