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/alf.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/alf.c') diff --git a/src/alf.c b/src/alf.c index 8eadccd..f0911b7 100644 --- a/src/alf.c +++ b/src/alf.c @@ -223,13 +223,15 @@ void crunch_file(const char *filename_arg) { create_header(); if(!opt_quiet) { + fputs("Crunching ", stdout); if(opt_verbose) { - printf("Crunching %s as %s", in_filename, hdr_filename); - } else { - printf("Crunching %s", hdr_filename); + safe_print_filename(in_filename, stdout); + fputs(" as ", stdout); } - fflush(stdout); + safe_print_filename(hdr_filename, stdout); + if(!opt_verbose) putchar('\n'); + fflush(stdout); } /* crunches the entire input to memory! */ -- cgit v1.2.3