Author: soliton
Date: Fri May  8 16:52:32 2009
New Revision: 35491

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35491&view=rev
Log:
quote the config filename so it gets parsed right

probably fixes bug #13499: "Host Networked Game" launches wesnothd with a 
random port number

Modified:
    trunk/src/game.cpp

Modified: trunk/src/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=35491&r1=35490&r2=35491&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Fri May  8 16:52:32 2009
@@ -1202,7 +1202,7 @@
        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 ";
+       std::string command = "cmd /C start \"wesnoth server\" /B \"" + 
wesnothd_program + "\" -c \"" + config + "\" -t 2 -T 5";
 #endif
        LOG_GENERAL << "Starting wesnothd: "<< command << "\n";
        if (std::system(command.c_str()) == 0) {


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to