From c22c2b011eaad9ce65114437bb237ccd3c6e30eb Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 27 Jul 2015 23:49:14 -0700 Subject: Use binary mode for reading shaders and config files so we actually get the number of bytes we expect --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index c434a43..ad4d929 100644 --- a/config.c +++ b/config.c @@ -91,7 +91,7 @@ tern_node * parse_config(char * config_data) tern_node * parse_config_file(char * config_path) { tern_node * ret = NULL; - FILE * config_file = fopen(config_path, "r"); + FILE * config_file = fopen(config_path, "rb"); if (!config_file) { goto open_fail; } -- cgit v1.2.3