From: <tr...@us...> - 2003-02-11 14:47:43
|
Update of /cvsroot/basedb/basedb/src/lib In directory sc8-pr-cvs1:/tmp/cvs-serv9596/lib Modified Files: basefile.cc Log Message: Fixed broken pubsetbuf() with deallocated buffer Index: basefile.cc =================================================================== RCS file: /cvsroot/basedb/basedb/src/lib/basefile.cc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** basefile.cc 6 Feb 2003 00:43:35 -0000 1.1 --- basefile.cc 11 Feb 2003 14:47:36 -0000 1.2 *************** *** 2,6 **** // // BioArray Software Environment (BASE) - homepage http://base.thep.lu.se/ ! // Copyright (C) 2002 Lao Saal, Carl Troein, Johan Vallon-Christersson // // This file is part of BASE. --- 2,6 ---- // // BioArray Software Environment (BASE) - homepage http://base.thep.lu.se/ ! // Copyright (C) 2002,2003 Lao Saal, Carl Troein, Johan Vallon-Christersson // // This file is part of BASE. *************** *** 124,127 **** --- 124,134 ---- #if !defined __GNUC__ || __GNUC__ >= 3 s.rdbuf()->pubsetbuf(&inbuf[0], inbuflen); + #endif + } + + BaseFileReader::~BaseFileReader() + { + #if !defined __GNUC__ || __GNUC__ >= 3 + str.rdbuf()->pubsetbuf(NULL, 0); #endif } |