freebsd-ports/www/aria/files/patch-src::HistoryWindow.cc
Kirill Ponomarev 42baadd690 - Fix build on big-endian arch
PR:		ports/65371
Submitted by:	Ports Fury
2004-04-09 18:20:43 +00:00

11 lines
350 B
C++

--- src/HistoryWindow.cc.orig Wed Oct 2 00:32:00 2002
+++ src/HistoryWindow.cc Thu Apr 8 22:41:14 2004
@@ -479,7 +479,7 @@
{
ifstream infile(filename.c_str(), ios::in);
- if(infile.bad()) return false;
+ if(!infile.is_open() || infile.bad()) return false;
int count = 0;
while(!infile.eof() && count < maxHistory) {
string line;