X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fwindows%2Fprocess.cpp;h=d6d1484f7d3ec05079310d2412df2f2c37c7ac0c;hp=7b1efd693aff45fce41594914b4d16dc2264de70;hb=acafbe566fb6f6b5592a2ec3dec667ba7cd3e7e4;hpb=9955efca718d8be72b63c7c2182ca59e7b9d0935 diff --git a/source/core/windows/process.cpp b/source/core/windows/process.cpp index 7b1efd6..d6d1484 100644 --- a/source/core/windows/process.cpp +++ b/source/core/windows/process.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include "process.h" #include "process_private.h" @@ -56,10 +57,7 @@ void Process::execute(const string &command, bool path_search, const Arguments & { string cmdline = quote_argument(command); for(Arguments::const_iterator i=args.begin(); i!=args.end(); ++i) - { - cmdline += ' '; - cmdline += quote_argument(*i); - } + append(cmdline, " ", quote_argument(*i)); STARTUPINFO startup; startup.cb = sizeof(STARTUPINFO);