mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 22:25:28 +00:00
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
This commit is contained in:
@@ -1115,7 +1115,7 @@ static void DoIncBin (void)
|
|||||||
|
|
||||||
/* Search for the file in the binary include directory */
|
/* Search for the file in the binary include directory */
|
||||||
char* PathName = FindInclude (SB_GetConstBuf (&Name), INC_BIN);
|
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 */
|
/* Not found or cannot open, print an error and bail out */
|
||||||
ErrorSkip ("Cannot open include file `%m%p': %s", &Name, strerror (errno));
|
ErrorSkip ("Cannot open include file `%m%p': %s", &Name, strerror (errno));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user