From f9b85dbfbb691101eb9a61b7d5d221e3455766ca Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 9 Sep 2022 11:45:51 +0200 Subject: [PATCH] BUG: bad detection of Ensight binary/ascii (fixes #2579) - related to #2535 --- src/fileFormats/ensight/read/ensightReadFile.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileFormats/ensight/read/ensightReadFile.C b/src/fileFormats/ensight/read/ensightReadFile.C index 846a77d11d..5a6ba00137 100644 --- a/src/fileFormats/ensight/read/ensightReadFile.C +++ b/src/fileFormats/ensight/read/ensightReadFile.C @@ -68,7 +68,7 @@ Foam::ensightReadFile::detectBinaryHeader(const fileName& pathname) if ( (buf.find("Binary") == std::string::npos) - || (buf.find("binary") == std::string::npos) + && (buf.find("binary") == std::string::npos) ) { fmt = IOstreamOption::ASCII;