From 3001a9ae80ed22874d235c223f514b8960659842 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 19 Sep 2002 17:35:27 -0400 Subject: [PATCH] Fix arguments --- Source/WXDialog/cmWXCommandLineInfo.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/WXDialog/cmWXCommandLineInfo.cxx b/Source/WXDialog/cmWXCommandLineInfo.cxx index aa53a478d..ffe83cbe5 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])