changeset 89:11d38c9e5095

Made reading input files use binary mode to avoid newline translation since we handle it ourselves manually
author lost
date Sat, 17 Jan 2009 04:38:32 +0000
parents 6460a1fb5f1f
children 6097cb1486f8
files src/pass1.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/pass1.c	Sat Jan 17 04:37:40 2009 +0000
+++ b/src/pass1.c	Sat Jan 17 04:38:32 2009 +0000
@@ -83,7 +83,7 @@
 	fnref = as -> filelist[as -> filelistlen] = lwasm_strdup(filename);
 	as -> filelistlen += 1;
 	
-	f = fopen(filename, "r");
+	f = fopen(filename, "rb");
 	if (!f)
 		return -1;