aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blaze822.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/blaze822.c b/blaze822.c
index 9262f6f..47f03a2 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -443,7 +443,10 @@ blaze822(char *file)
if (!mesg)
return 0;
- fd = open(file, O_RDONLY);
+ if (strcmp(file, "/dev/stdin") == 0)
+ fd = dup(0);
+ else
+ fd = open(file, O_RDONLY);
if (fd < 0) {
free(mesg);
return 0;