summaryrefslogtreecommitdiffstats
path: root/Source/cmMakeDepend.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/cmMakeDepend.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/cmMakeDepend.cxx')
-rw-r--r--Source/cmMakeDepend.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakeDepend.cxx b/Source/cmMakeDepend.cxx
index 61354b5..2d13cf9 100644
--- a/Source/cmMakeDepend.cxx
+++ b/Source/cmMakeDepend.cxx
@@ -198,10 +198,10 @@ void cmMakeDepend::DependWalk(cmDependInformation* info)
}
// TODO: Write real read loop (see cmSystemTools::CopyFile).
- char line[255];
- for(fin.getline(line, 255); fin; fin.getline(line, 255))
+ std::string line;
+ while( cmSystemTools::GetLineFromStream(fin, line) )
{
- if(includeLine.find(line))
+ if(includeLine.find(line.c_str()))
{
// extract the file being included
std::string includeFile = includeLine.match(1);