summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-03-03 10:58:42 +0000
committerDave Chapman <dave@dchapman.com>2007-03-03 10:58:42 +0000
commit8ae8351e11ea627d199634e988d9abb5c6ef1a94 (patch)
tree0f700b0d8e082e54353a0b4e202facbfa92651f8
parent1602bf51729a3107ef4f3220cad6c518cdc17185 (diff)
downloadrockbox-8ae8351e11ea627d199634e988d9abb5c6ef1a94.tar.gz
rockbox-8ae8351e11ea627d199634e988d9abb5c6ef1a94.tar.bz2
rockbox-8ae8351e11ea627d199634e988d9abb5c6ef1a94.zip
Use O_BINARY flag when opening bootloader files for embedding
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12567 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--rbutil/ipodpatcher/ipod2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/ipodpatcher/ipod2c.c b/rbutil/ipodpatcher/ipod2c.c
index 21dfd6bb62..a39f780f08 100644
--- a/rbutil/ipodpatcher/ipod2c.c
+++ b/rbutil/ipodpatcher/ipod2c.c
@@ -106,7 +106,7 @@ int main (int argc, char* argv[])
infile=argv[1];
cname=argv[2];
- fd = open(infile,O_RDONLY);
+ fd = open(infile,O_RDONLY|O_BINARY);
if (fd < 0) {
fprintf(stderr,"Can not open %s\n",infile);
return 0;