summaryrefslogtreecommitdiffstats
path: root/Source/cmMakeDepend.cxx
diff options
context:
space:
mode:
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);