summaryrefslogtreecommitdiffstats
path: root/src/cc4group.c
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-03-16 15:15:56 +0100
committerMarkus Mittendrein <git@maxmitti.tk>2019-03-16 15:17:11 +0100
commit673a447f292c07ad5399211f823ec45771bea07b (patch)
treef6a72ab9e8621fe9a93018f761fa5c0712c36fd3 /src/cc4group.c
parentdf9f87f985e0b1e5c13bf4b196d16316f49cd8ac (diff)
downloadcc4group-673a447f292c07ad5399211f823ec45771bea07b.tar.gz
cc4group-673a447f292c07ad5399211f823ec45771bea07b.zip
Fix c4ls_buffer and reading from stdin file "-" on windows
Diffstat (limited to 'src/cc4group.c')
-rw-r--r--src/cc4group.c1
1 files changed, 1 insertions, 0 deletions
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);
}