diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-07-27 23:49:14 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-07-27 23:49:14 -0700 |
commit | c22c2b011eaad9ce65114437bb237ccd3c6e30eb (patch) | |
tree | d3792f6e51dcfd2db02ee78e6d00920b92306a46 /config.c | |
parent | 9cf93af158f6964501bb2be8912a19bb572a2170 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |