summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-07-27 23:49:14 -0700
committerMichael Pavone <pavone@retrodev.com>2015-07-27 23:49:14 -0700
commitc22c2b011eaad9ce65114437bb237ccd3c6e30eb (patch)
treed3792f6e51dcfd2db02ee78e6d00920b92306a46 /config.c
parent9cf93af158f6964501bb2be8912a19bb572a2170 (diff)
Use binary mode for reading shaders and config files so we actually get the number of bytes we expect
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
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;
}