summaryrefslogtreecommitdiffstats
path: root/Source/cmSetCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-20 01:12:00 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-11-21 19:53:15 (GMT)
commit4fe963f656c48b1f2fd0b4a2f427bb376f619c37 (patch)
treef04d63d59976dfa868873de1646664f57f59e2e2 /Source/cmSetCommand.cxx
parent7d4b2b2ef36c73c36eefd464fbb17bf34ebdb5fe (diff)
downloadCMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.zip
CMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.tar.gz
CMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.tar.bz2
Use new cmHasLiteralPrefix function
Diffstat (limited to 'Source/cmSetCommand.cxx')
-rw-r--r--Source/cmSetCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx
index bb193bf..36363a1 100644
--- a/Source/cmSetCommand.cxx
+++ b/Source/cmSetCommand.cxx
@@ -23,7 +23,7 @@ bool cmSetCommand
// watch for ENV signatures
const char* variable = args[0].c_str(); // VAR is always first
- if (!strncmp(variable,"ENV{",4) && strlen(variable) > 5)
+ if (cmHasLiteralPrefix(variable, "ENV{") && strlen(variable) > 5)
{
// what is the variable name
char *varName = new char [strlen(variable)];