diff options
Diffstat (limited to 'bas.c')
-rw-r--r-- | bas.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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."); } |