Browse Source

Merge branch 'master' of https://github.com/beefytech/Beef

Brian Fiete 1 year ago
parent
commit
a8ef67477a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      BeefySysLib/platform/posix/PosixCommon.cpp

+ 1 - 1
BeefySysLib/platform/posix/PosixCommon.cpp

@@ -600,7 +600,7 @@ BFP_EXPORT void BFP_CALLTYPE BfpSystem_SetCommandLine(int argc, char** argv)
 			gCmdLine.Append(' ');
 
 		String arg = argv[i];
-		if ((arg.Contains(' ')) || (arg.Contains('\"')))
+		if (arg.Contains(' ') || arg.Contains('\t') || arg.Contains('\r') || arg.Contains('\n') || arg.Contains('\"'))
 		{
 			arg.Replace("\"", "\\\"");
 			gCmdLine.Append("\"");