diff options
author | Ran Benita <ran@unusedvar.com> | 2019-12-28 13:49:40 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2019-12-28 13:49:40 +0200 |
commit | da4a90c13e03d5a8684c66e7e8e69b174af822a0 (patch) | |
tree | 3a720ab5b8c6009578d838945ed6fdf50c67d1c3 /bench/compose.c | |
parent | fe417d841e838adfd57f591ea27bd34a999eeb77 (diff) | |
download | xorg-lib-libxkbcommon-da4a90c13e03d5a8684c66e7e8e69b174af822a0.tar.gz |
Open files in binary mode
This turns off some misfeatures on Windows, and does nothing on POSIX.
Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'bench/compose.c')
-rw-r--r-- | bench/compose.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/compose.c b/bench/compose.c index 6951bd5..7ff0798 100644 --- a/bench/compose.c +++ b/bench/compose.c @@ -46,7 +46,7 @@ main(void) assert(ctx); path = test_get_path("compose/en_US.UTF-8/Compose"); - file = fopen(path, "r"); + file = fopen(path, "rb"); if (file == NULL) { perror(path); free(path); |