aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;