From cf96b77c12e7a2e7e93608b1d67c76e18a45cad2 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Sat, 8 Oct 2022 21:19:21 -0300 Subject: [PATCH] core: trim short program name for Windows compatibility --- src/core/model/command-line.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/model/command-line.cc b/src/core/model/command-line.cc index 0c1fa2b37..21c4b73af 100644 --- a/src/core/model/command-line.cc +++ b/src/core/model/command-line.cc @@ -125,6 +125,7 @@ CommandLine::CommandLine(const std::string filename) NS_LOG_FUNCTION(this << filename); std::string basename = SystemPath::Split(filename).back(); m_shortName = basename.substr(0, basename.rfind(".cc")); + m_shortName = m_shortName.substr(basename.find_last_of('/') + 1); } CommandLine::CommandLine(const CommandLine& cmd)