summaryrefslogtreecommitdiffstats
path: root/Source/cmOutputRequiredFilesCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-03-27 17:24:30 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-03-27 17:24:30 (GMT)
commita9875aa62f41ed13b54ea9f92c65ade9f0df6845 (patch)
treeeac19ea62e63cd53b73a29144ed997e6e683ee63 /Source/cmOutputRequiredFilesCommand.cxx
parentb133b832fdcb50bc7bb9dc4bfb0631bb9aa6989e (diff)
downloadCMake-a9875aa62f41ed13b54ea9f92c65ade9f0df6845.zip
CMake-a9875aa62f41ed13b54ea9f92c65ade9f0df6845.tar.gz
CMake-a9875aa62f41ed13b54ea9f92c65ade9f0df6845.tar.bz2
Implement GetLineFromStream that actually works and use it instead of getline
Diffstat (limited to 'Source/cmOutputRequiredFilesCommand.cxx')
-rw-r--r--Source/cmOutputRequiredFilesCommand.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmOutputRequiredFilesCommand.cxx b/Source/cmOutputRequiredFilesCommand.cxx
index a34d6db..766124c 100644
--- a/Source/cmOutputRequiredFilesCommand.cxx
+++ b/Source/cmOutputRequiredFilesCommand.cxx
@@ -34,11 +34,10 @@ void cmLBDepend::DependWalk(cmDependInformation* info)
return;
}
- char line[255];
- while(!fin.eof() && !fin.fail())
+ std::string line;
+ while(cmSystemTools::GetLineFromStream(fin, line))
{
- fin.getline(line, 255);
- if(!strncmp(line, "#include", 8))
+ if(!strncmp(line.c_str(), "#include", 8))
{
// if it is an include line then create a string class
std::string currentline = line;