diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-19 21:35:27 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-19 21:35:27 (GMT) |
commit | 3001a9ae80ed22874d235c223f514b8960659842 (patch) | |
tree | dd2f901cf712eb8c1ab3cd533dc461793d6a8e74 | |
parent | ceb63bedaf2dda5afbe1f1ddafdc017b9a9dc7e8 (diff) | |
download | CMake-3001a9ae80ed22874d235c223f514b8960659842.zip CMake-3001a9ae80ed22874d235c223f514b8960659842.tar.gz CMake-3001a9ae80ed22874d235c223f514b8960659842.tar.bz2 |
Fix arguments
-rw-r--r-- | Source/WXDialog/cmWXCommandLineInfo.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WXDialog/cmWXCommandLineInfo.cxx b/Source/WXDialog/cmWXCommandLineInfo.cxx index aa53a47..ffe83cb 100644 --- a/Source/WXDialog/cmWXCommandLineInfo.cxx +++ b/Source/WXDialog/cmWXCommandLineInfo.cxx @@ -95,16 +95,16 @@ void cmCommandLineInfo::ParseParam(const std::string& parameter, } else { - std::string sParam(parameter.c_str(), 1); + std::string sParam(parameter.c_str(), 1, parameter.npos); // Single letter valued flag like /B=value or /B:value std::string value; if (sParam[1] == '=' || sParam[1] == ':') { - value = std::string(parameter.c_str()+2); + value = std::string(parameter.c_str()+3); } else { - value = std::string(parameter.c_str()+1); + value = std::string(parameter.c_str()+2); } int res; switch (sParam[0]) |