summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-11-09 08:29:34 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-11-09 08:29:34 -0800
commitf8e9f5a4446fcd13f2e35b5c9e9a8166f39f553a (patch)
treec21429771289f9ef0f10bcd9e1ef97c78c98412c /src
parent4cd5a4842f4892fa2284e438f3f79d779c692be8 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/ansr-tex.c2
1 files changed, 1 insertions, 1 deletions
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;
© All Rights Reserved