diff options
| author | Dave Chapman <dave@dchapman.com> | 2007-03-03 10:58:42 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2007-03-03 10:58:42 +0000 |
| commit | 8ae8351e11ea627d199634e988d9abb5c6ef1a94 (patch) | |
| tree | 0f700b0d8e082e54353a0b4e202facbfa92651f8 | |
| parent | 1602bf51729a3107ef4f3220cad6c518cdc17185 (diff) | |
| download | rockbox-8ae8351e11ea627d199634e988d9abb5c6ef1a94.zip rockbox-8ae8351e11ea627d199634e988d9abb5c6ef1a94.tar.gz rockbox-8ae8351e11ea627d199634e988d9abb5c6ef1a94.tar.bz2 rockbox-8ae8351e11ea627d199634e988d9abb5c6ef1a94.tar.xz | |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/ipodpatcher/ipod2c.c b/rbutil/ipodpatcher/ipod2c.c index 21dfd6b..a39f780 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; |