aboutsummaryrefslogtreecommitdiff
path: root/uxd.c
diff options
context:
space:
mode:
Diffstat (limited to 'uxd.c')
-rw-r--r--uxd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/uxd.c b/uxd.c
index ef86bb7..a91520c 100644
--- a/uxd.c
+++ b/uxd.c
@@ -188,6 +188,7 @@ void version(void) {
void open_input(const char *arg) {
if(!arg || (strcmp(arg, "-") == 0)) {
input = stdin;
+ freopen(NULL, "rb", stdin);
} else {
input = fopen(arg, "rb");
if(!input) {