X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FDriverUNV%2FUNV_Utilities.hxx;h=1db6d2bb9c68e866fc3a52a51947a1ceb4f734e4;hp=50a53a75f16112200b24896e4420aff7dac71c16;hb=1227aa421b394e8a149d05f23149fd973208d84c;hpb=d9e7f2c591e37b3d87a58eb14b816698b7831383 diff --git a/src/DriverUNV/UNV_Utilities.hxx b/src/DriverUNV/UNV_Utilities.hxx index 50a53a75f..1db6d2bb9 100644 --- a/src/DriverUNV/UNV_Utilities.hxx +++ b/src/DriverUNV/UNV_Utilities.hxx @@ -128,15 +128,14 @@ namespace UNV{ */ inline std::string read_line(std::ifstream& in_stream, const bool next=true) { - char line[theMaxLineLen]; - in_stream.getline( line, theMaxLineLen ); + std::string resLine; + std::getline( in_stream, resLine ); if ( next ) - in_stream.getline( line, theMaxLineLen ); + std::getline( in_stream, resLine ); - std::string resLine = line; if ( resLine.size() > 0 && resLine[ resLine.size()-1 ] == '\r' ) resLine.resize( resLine.size()-1 ); - return line; + return resLine; } };