From 673a447f292c07ad5399211f823ec45771bea07b Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 16 Mar 2019 15:15:56 +0100 Subject: Fix c4ls_buffer and reading from stdin file "-" on windows --- src/cc4group.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cc4group.c') diff --git a/src/cc4group.c b/src/cc4group.c index e0ba55e..e126984 100644 --- a/src/cc4group.c +++ b/src/cc4group.c @@ -1057,6 +1057,7 @@ static bool cc4group_openExisting(CC4Group* const this, const char* const path) if(strcmp(path, "-") == 0) { + SET_BINARY(STDIN_FILENO); return cc4group_openFd(this, STDIN_FILENO); } -- cgit v1.2.3-54-g00ecf