From f8e9f5a4446fcd13f2e35b5c9e9a8166f39f553a Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 9 Nov 2022 08:29:34 -0800 Subject: ansr-tex: open .ans files with "rb" to make windows happy Windows builds were crashing after not even rendering the splash screen properly. Experience suggested this was probably the cause, and testing in WINE has at least seemed confirm the fix. --- src/ansr-tex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ansr-tex.c') diff --git a/src/ansr-tex.c b/src/ansr-tex.c index df40ae9..46d6d00 100644 --- a/src/ansr-tex.c +++ b/src/ansr-tex.c @@ -92,7 +92,7 @@ static ansr_t * ansr_from_file(const char *path) FILE *f; ansr_t *a; - f = fopen(path, "r"); + f = fopen(path, "rb"); if (!f) return NULL; -- cgit v1.2.3