openbsd-ports/textproc/source-highlight/patches/patch-src_lib_fileutil_cc
2004-06-24 05:30:42 +00:00

13 lines
635 B
Plaintext

$OpenBSD: patch-src_lib_fileutil_cc,v 1.1 2004/06/24 05:30:44 kevlo Exp $
--- src/lib/fileutil.cc.orig 2004-06-24 13:08:35.000000000 +0000
+++ src/lib/fileutil.cc 2004-06-24 13:09:28.000000000 +0000
@@ -41,7 +41,7 @@ read_file(const string &fileName)
// we open it as binary otherwise we may experience problems under
// Windows system: when we fread, the number of char read can be
// less then char_count, and thus we'd get an error...
- ifstream file (fileName.c_str (), ios_base::binary);
+ ifstream file (fileName.c_str (), ios::binary);
if (! file.is_open () )
file_error ("Error operning", fileName);
else