Mercurial > repos > blastem
diff config.c @ 816:7ed55a361e79
Use binary mode for reading shaders and config files so we actually get the number of bytes we expect
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 27 Jul 2015 23:49:14 -0700 |
parents | 0b692b5d154b |
children | 46bb673eed4e |
line wrap: on
line diff
--- a/config.c Mon Jul 27 23:42:54 2015 -0700 +++ b/config.c Mon Jul 27 23:49:14 2015 -0700 @@ -91,7 +91,7 @@ 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; }