From b97760fa5212d34f6bd371bc8841f2bfb5e8b124 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 16 Dec 2010 17:41:27 -0500 Subject: [PATCH] Remove call to SystemTools::GetMaximumFilePathLength The KWSys SystemTools::GetMaximumFilePathLength method is poorly conceived and should not be used. The cmDepends code honors its own MaxPath buffer size. Just hard-code it. --- Source/cmDepends.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx index 69ff85843..19558fa7d 100644 --- a/Source/cmDepends.cxx +++ b/Source/cmDepends.cxx @@ -25,7 +25,7 @@ cmDepends::cmDepends(cmLocalGenerator* lg, const char* targetDir): Verbose(false), FileComparison(0), TargetDirectory(targetDir), - MaxPath(cmSystemTools::GetMaximumFilePathLength()), + MaxPath(16384), Dependee(new char[MaxPath]), Depender(new char[MaxPath]) {