From: uz Date: Sun, 31 Jan 2010 20:49:40 +0000 (+0000) Subject: Fixed open mode for second try in DoIncBin (Greg King). X-Git-Tag: V2.13.2~37 X-Git-Url: https://git.sur5r.net/?p=cc65;a=commitdiff_plain;h=5477e62e3a4e59722b90979a5a2e1c678b7ac69a 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 --- 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)); }