From 9e666b6bbdc18168aa680a1b9bde4e2ea701cb60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Mon, 20 Aug 2012 15:25:08 +0200 Subject: [PATCH] stratagus-game-launcher.h - Path to data must be escaped on Windows This fix problems that on Windows wargus.exe binary do nothing... --- gameheaders/stratagus-game-launcher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameheaders/stratagus-game-launcher.h b/gameheaders/stratagus-game-launcher.h index bdde1d323..bd80d7898 100644 --- a/gameheaders/stratagus-game-launcher.h +++ b/gameheaders/stratagus-game-launcher.h @@ -286,7 +286,7 @@ int main(int argc, char * argv[]) { if ( chdir(stratagus_path) != 0 ) { error(TITLE, STRATAGUS_NOT_FOUND); } - strcpy(scripts_path, data_path); + sprintf(scripts_path, "\"%s\"", data_path); sprintf(stratagus_bin, "%s\\stratagus.exe", stratagus_path); #else strcpy(data_path, DATA_PATH);