From 7a6cab8381ebf726b2ad558a22859d33f344a59d Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 25 Apr 1998 15:05:01 +0000 Subject: [PATCH] Changed "r" to "rb" in gzopen() options. This fixes bad behavior in win32. --- Math/interpolater.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Math/interpolater.cxx b/Math/interpolater.cxx index 74f58311..62006361 100644 --- a/Math/interpolater.cxx +++ b/Math/interpolater.cxx @@ -43,9 +43,9 @@ fgINTERPTABLE::fgINTERPTABLE( char *file ) { // First try "file.gz" strcpy(gzfile, file); strcat(gzfile, ".gz"); - if ( (fd = gzopen(gzfile, "r")) == NULL ) { + if ( (fd = gzopen(gzfile, "rb")) == NULL ) { // Next try "path" - if ( (fd = gzopen(file, "r")) == NULL ) { + if ( (fd = gzopen(file, "rb")) == NULL ) { fgPrintf(FG_MATH, FG_EXIT, "Cannot open file: %s\n", file); } } @@ -107,6 +107,9 @@ fgINTERPTABLE::~fgINTERPTABLE( void ) { // $Log$ +// Revision 1.3 1998/04/25 15:05:01 curt +// Changed "r" to "rb" in gzopen() options. This fixes bad behavior in win32. +// // Revision 1.2 1998/04/22 13:18:10 curt // C++ - ified comments. Make file open errors fatal. // -- 2.39.2