quote the config file name on non-windows platforms, too

This commit is contained in:
Gunter Labes 2009-07-04 19:28:05 +00:00
parent a8f6295926
commit 897a733e92

View File

@ -1166,7 +1166,7 @@ void game_controller::start_wesnothd()
}
#ifndef _WIN32
std::string command = "\"" + wesnothd_program +"\" -c " + config + " -d -t 2 -T 5 ";
std::string command = "\"" + wesnothd_program +"\" -c \"" + config + "\" -d -t 2 -T 5";
#else
// start wesnoth as background job
std::string command = "cmd /C start \"wesnoth server\" /B \"" + wesnothd_program + "\" -c \"" + config + "\" -t 2 -T 5";