[hamradio-commits] [dump1090] 346/389: Read Files are binary
Matthew Ernisse
mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:20:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
mernisse-guest pushed a commit to branch master
in repository dump1090.
commit e3bbf7b26622f88c9ee828b89b17a4954ac5b864
Author: Malcolm Robb <Support at ATTAvionics.com>
Date: Tue Sep 30 16:36:56 2014 +0100
Read Files are binary
When replaying recordings, the read files are binary, so the file open
needs to reflect this so that spurious end of file characters aren't
misinterpreted.
---
dump1090.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dump1090.c b/dump1090.c
index 3454aa0..f88d03b 100644
--- a/dump1090.c
+++ b/dump1090.c
@@ -710,7 +710,7 @@ int main(int argc, char **argv) {
} else {
if (Modes.filename[0] == '-' && Modes.filename[1] == '\0') {
Modes.fd = STDIN_FILENO;
- } else if ((Modes.fd = open(Modes.filename,O_RDONLY)) == -1) {
+ } else if ((Modes.fd = open(Modes.filename, (O_RDONLY | O_BINARY))) == -1) {
perror("Opening data file");
exit(1);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git
More information about the pkg-hamradio-commits
mailing list