diff options
author | Andrei Errapart <andrei@errapartengineering.com> | 2014-06-19 21:12:27 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2014-06-19 21:12:31 +1000 |
commit | 83e606a64d7b555bea3c3007b48bb9f790f0139c (patch) | |
tree | 2b6ddfc985cb3de3de3bd2d0e0ccf94ff8460c72 /fstree.c | |
parent | 25a9bd6267bf1a2e144344325a71432193eed4b0 (diff) | |
download | dtc-83e606a64d7b555bea3c3007b48bb9f790f0139c.zip dtc-83e606a64d7b555bea3c3007b48bb9f790f0139c.tar.gz dtc-83e606a64d7b555bea3c3007b48bb9f790f0139c.tar.bz2 |
Open binary files in binary mode
The "b" flag to fopen() is generally a no-op on Unix-like systems, but may
be important on other systems, including Windows.
Signed-off-by: Andrei Errapart <andrei@errapartengineering.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'fstree.c')
-rw-r--r-- | fstree.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ static struct node *read_fstree(const char *dirname) struct property *prop; FILE *pfile; - pfile = fopen(tmpname, "r"); + pfile = fopen(tmpname, "rb"); if (! pfile) { fprintf(stderr, "WARNING: Cannot open %s: %s\n", |