From 5477e62e3a4e59722b90979a5a2e1c678b7ac69a Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 31 Jan 2010 20:49:40 +0000 Subject: [PATCH] Fixed open mode for second try in DoIncBin (Greg King). git-svn-id: svn://svn.cc65.org/cc65/trunk@4563 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/pseudo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca65/pseudo.c b/src/ca65/pseudo.c index da34c85a0..8c71e71b8 100644 --- a/src/ca65/pseudo.c +++ b/src/ca65/pseudo.c @@ -1115,7 +1115,7 @@ static void DoIncBin (void) /* Search for the file in the binary include directory */ char* PathName = FindInclude (SB_GetConstBuf (&Name), INC_BIN); - if (PathName == 0 || (F = fopen (PathName, "r")) == 0) { + if (PathName == 0 || (F = fopen (PathName, "rb")) == 0) { /* Not found or cannot open, print an error and bail out */ ErrorSkip ("Cannot open include file `%m%p': %s", &Name, strerror (errno)); } -- 2.39.5