aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-05-19 15:56:44 -0400
committerB. Watson <urchlay@slackware.uk>2024-05-19 15:56:44 -0400
commit2f3bd55966eb27f6ffc40f5f534c196bc5e1ce98 (patch)
tree60875b0d87ed5a694b448540a87b8042409f7467
parent1583dac116be07cf98145c95397e19d8c8e7b833 (diff)
downloadbw-atari8-tools-2f3bd55966eb27f6ffc40f5f534c196bc5e1ce98.tar.gz
unprotbas: use die() for binary data to stdout.
-rw-r--r--unprotbas.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/unprotbas.c b/unprotbas.c
index 16fbea5..9964d39 100644
--- a/unprotbas.c
+++ b/unprotbas.c
@@ -423,8 +423,7 @@ void open_input(const char *name) {
void open_output(const char *name) {
if(!name) {
if(isatty(fileno(stdout))) {
- fprintf(stderr, "%s: refusing to write binary data to standard output\n", self);
- exit(1);
+ die("refusing to write binary data to standard output");
}
if(freopen(NULL, "wb", stdout)) {
output_file = stdout;