|
From: Frank T. <ch...@us...> - 2004-09-30 14:35:51
|
Update of /cvsroot/bzflag/bzflag/src/bzfs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9916/src/bzfs Modified Files: BZWReader.cxx Log Message: gcc 2.95 obviously does not have the standard function to compare a substring to another string; rewrote it using a temporary substring Index: BZWReader.cxx =================================================================== RCS file: /cvsroot/bzflag/bzflag/src/bzfs/BZWReader.cxx,v retrieving revision 1.22 retrieving revision 1.23 diff -w -u -r1.22 -r1.23 --- BZWReader.cxx 29 Sep 2004 19:34:41 -0000 1.22 +++ BZWReader.cxx 30 Sep 2004 14:35:41 -0000 1.23 @@ -44,7 +44,7 @@ BZWReader::BZWReader(std::string filename) : location(filename), input(NULL) { errorHandler = new BZWError(location); - if (filename.compare(0, urlProtocol.size(), urlProtocol)) { + if (filename.substr(0, urlProtocol.size()) == urlProtocol) { input = new std::ifstream(filename.c_str(), std::ios::in); } else { URLManager::instance().getURL(location, httpData); |