From 9d9c6033c28eaeadfaad71c6aba19ce489678dd1 Mon Sep 17 00:00:00 2001 From: scttgs0 Date: Sun, 10 Dec 2023 01:27:49 -0600 Subject: [PATCH] Surround 'cp' arguments with quotes. patch provided by thefgfseagle@gmail.com. --- src/BuildTiles/Main/tgconstruct_output.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BuildTiles/Main/tgconstruct_output.cxx b/src/BuildTiles/Main/tgconstruct_output.cxx index 8993a197..972e8285 100644 --- a/src/BuildTiles/Main/tgconstruct_output.cxx +++ b/src/BuildTiles/Main/tgconstruct_output.cxx @@ -102,7 +102,7 @@ void TGConstruct::AddCustomObjects( void ) { string command = "copy /Y " + basecom + " " + dest_dir; #else string basecom = srcbase.utf8Str(); - string command = "cp " + basecom + " " + dest_dir; + string command = "cp \"" + basecom + "\" \"" + dest_dir + "\""; #endif SG_LOG( SG_GENERAL, SG_DEBUG, "running " << command );