summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2019-12-28 13:49:40 +0200
committerRan Benita <ran@unusedvar.com>2019-12-28 13:49:40 +0200
commitda4a90c13e03d5a8684c66e7e8e69b174af822a0 (patch)
tree3a720ab5b8c6009578d838945ed6fdf50c67d1c3 /bench
parentfe417d841e838adfd57f591ea27bd34a999eeb77 (diff)
downloadxorg-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')
-rw-r--r--bench/compose.c2
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);