summaryrefslogtreecommitdiff
path: root/Source/cmMakeDepend.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-03-27 12:24:30 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-03-27 12:24:30 -0500
commita9875aa62f41ed13b54ea9f92c65ade9f0df6845 (patch)
treeeac19ea62e63cd53b73a29144ed997e6e683ee63 /Source/cmMakeDepend.cxx
parentb133b832fdcb50bc7bb9dc4bfb0631bb9aa6989e (diff)
downloadcmake-a9875aa62f41ed13b54ea9f92c65ade9f0df6845.tar.gz
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 61354b5d36..2d13cf918f 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);