From 847633097915ea18cc15f4886dbfc0a8df43d359 Mon Sep 17 00:00:00 2001 From: Phil Pritchett Date: Mon, 5 Nov 2001 05:43:48 -0500 Subject: [PATCH] switched string::compare to strncmp --- Source/cmDSPWriter.cxx | 2 +- Source/cmDSWWriter.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index 8f8b3f124..180de34de 100644 --- a/Source/cmDSPWriter.cxx +++ b/Source/cmDSPWriter.cxx @@ -128,7 +128,7 @@ void cmDSPWriter::OutputDSPFile() // so don't build a projectfile for it if ((l->second.GetType() != cmTarget::INSTALL_FILES) && (l->second.GetType() != cmTarget::INSTALL_PROGRAMS) - && (l->first.compare(0,26, "INCLUDE_EXTERNAL_MSPROJECT") != 0)) + && (strncmp(l->first.c_str(), "INCLUDE_EXTERNAL_MSPROJECT", 26) != 0)) { this->CreateSingleDSP(l->first.c_str(),l->second); } diff --git a/Source/cmDSWWriter.cxx b/Source/cmDSWWriter.cxx index d86ba2a2f..6f7da0389 100644 --- a/Source/cmDSWWriter.cxx +++ b/Source/cmDSWWriter.cxx @@ -172,7 +172,7 @@ void cmDSWWriter::WriteDSWFile(std::ostream& fout) } } // Write the project into the DSW file - if (l->first.compare(0,26, "INCLUDE_EXTERNAL_MSPROJECT") == 0) + if (strncmp(l->first.c_str(), "INCLUDE_EXTERNAL_MSPROJECT", 26) == 0) { cmCustomCommand cc = l->second.GetCustomCommands()[0];