From 2f3bd55966eb27f6ffc40f5f534c196bc5e1ce98 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 19 May 2024 15:56:44 -0400 Subject: unprotbas: use die() for binary data to stdout. --- unprotbas.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'unprotbas.c') 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; -- cgit v1.2.3