diff options
author | B. Watson <urchlay@slackware.uk> | 2024-05-19 15:56:44 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-05-19 15:56:44 -0400 |
commit | 2f3bd55966eb27f6ffc40f5f534c196bc5e1ce98 (patch) | |
tree | 60875b0d87ed5a694b448540a87b8042409f7467 | |
parent | 1583dac116be07cf98145c95397e19d8c8e7b833 (diff) | |
download | bw-atari8-tools-2f3bd55966eb27f6ffc40f5f534c196bc5e1ce98.tar.gz |
unprotbas: use die() for binary data to stdout.
-rw-r--r-- | unprotbas.c | 3 |
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; |