summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.c2
-rwxr-xr-xrender_sdl.c4
2 files changed, 3 insertions, 3 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;
}
diff --git a/render_sdl.c b/render_sdl.c
index a2f094e..608d33c 100755
--- a/render_sdl.c
+++ b/render_sdl.c
@@ -117,13 +117,13 @@ GLuint load_shader(char * fname, GLenum shader_type)
{
char * parts[] = {get_home_dir(), "/.config/blastem/shaders/", fname};
char * shader_path = alloc_concat_m(3, parts);
- FILE * f = fopen(shader_path, "r");
+ FILE * f = fopen(shader_path, "rb");
free(shader_path);
if (!f) {
parts[0] = get_exe_dir();
parts[1] = "/shaders/";
shader_path = alloc_concat_m(3, parts);
- f = fopen(shader_path, "r");
+ f = fopen(shader_path, "rb");
free(shader_path);
if (!f) {
warning("Failed to open shader file %s for reading\n", fname);