From c68f95b73db282ff54dd8a680d21471bb9870aed Mon Sep 17 00:00:00 2001 From: Nicholas O'Connor Date: Fri, 7 Apr 2017 21:37:58 -0700 Subject: [PATCH] fix spaces in args --- src/launch/launch.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/launch/launch.cpp b/src/launch/launch.cpp index 3fd78a5..9d03e86 100644 --- a/src/launch/launch.cpp +++ b/src/launch/launch.cpp @@ -14,11 +14,8 @@ using namespace std; using namespace cellar; void cellar::launch::launch_program(vector args) { - vector wineargs = args; - wineargs[0] = "wine"; - - string winelaunch = boost::algorithm::join(wineargs, " "); - launch::popen(winelaunch); + args[0] = "wine"; + launch::popen(args); } void cellar::launch::launch_command(int argc, vector args) { @@ -30,6 +27,8 @@ void cellar::launch::launch_command(int argc, vector args) { } void cellar::launch::popen(string argv) { + output::warning("use of deprecated string based function", true); + output::statement("launching program: " + argv, true); vector argvsplit; boost::algorithm::split(argvsplit, argv, boost::is_any_of(" ")); string exec = argvsplit[0]; @@ -43,6 +42,7 @@ void cellar::launch::popen(string argv) { } void cellar::launch::popen(vector argv) { + output::statement("launching program: " + boost::algorithm::join(argv, " "), true); string exec = argv[0]; vector subargv; for (int curarg = 1; curarg < argv.size(); curarg++) {