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/alf.c | |
| parent | 1fa2b732b7b6c1539995fa40605d9bcf807ac357 (diff) | |
| download | alftools-c0bc883bcfca5791ea64d488caf359a2c8de4360.tar.gz | |
Do not print unprintable characters in filenames.
Diffstat (limited to 'src/alf.c')
| -rw-r--r-- | src/alf.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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! */ |
