diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2019-03-16 15:15:56 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2019-03-16 15:17:11 +0100 |
| commit | 673a447f292c07ad5399211f823ec45771bea07b (patch) | |
| tree | f6a72ab9e8621fe9a93018f761fa5c0712c36fd3 /examples | |
| parent | df9f87f985e0b1e5c13bf4b196d16316f49cd8ac (diff) | |
| download | cc4group-673a447f292c07ad5399211f823ec45771bea07b.tar.gz cc4group-673a447f292c07ad5399211f823ec45771bea07b.zip | |
Fix c4ls_buffer and reading from stdin file "-" on windows
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/c4ls_buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/c4ls_buffer.c b/examples/c4ls_buffer.c index 6bb2cca..4ec6843 100644 --- a/examples/c4ls_buffer.c +++ b/examples/c4ls_buffer.c @@ -7,6 +7,7 @@ #include <errno.h> #include "cc4group.h" +#include "platform/platform.h" const char* formatTime(int32_t time) { @@ -58,6 +59,8 @@ int main(int argc, char* argv[]) return EXIT_FAILURE; } + SET_BINARY(STDIN_FILENO); + size_t size = 1024; uint8_t* buffer = malloc(size); if(buffer == NULL) |
