aboutsummaryrefslogtreecommitdiff
path: root/bas.c
diff options
context:
space:
mode:
Diffstat (limited to 'bas.c')
-rw-r--r--bas.c2
1 files changed, 1 insertions, 1 deletions
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.");
}