diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineParser.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineParser.cxx index e9a141a13285612073f987f3f5d9fb1641de2972..a943c31da03929d9dd5debc637e97c84857c2bf0 100644 --- a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineParser.cxx +++ b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineParser.cxx @@ -153,7 +153,7 @@ CommandLineParser::GetPaths( std::vector<std::string> & paths, const std::string if( tempModPath.size() > 0 ) { - std::vector<itksys::String> pathAttribut = itksys::SystemTools::SplitString(tempModPath.substr(0, tempModPath.size()), ' ', false); + std::vector<itksys::String> pathAttribut = itksys::SystemTools::SplitString(tempModPath, ' ', false); // Remove " " string element