From 028b2a57446789fe7bafb8ab678c1f0f43b34645 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 7 Jun 2024 04:47:04 -0400 Subject: dumpbas: added. --- bas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bas.c') diff --git a/bas.c b/bas.c index 230032c..e90d96c 100644 --- a/bas.c +++ b/bas.c @@ -217,7 +217,7 @@ FILE *open_file(const char *name, const char *mode) { } void open_input(const char *name) { - if(!name) { + if(!name || strcmp(name, "-") == 0) { if(isatty(fileno(stdin))) { die("Can't read binary data from the terminal."); } -- cgit v1.2.3