Merge pull request #853 from joshhale/tweak-cwe-078-example

doc: remove - from command arguments
This commit is contained in:
Anders Schack-Mulligen
2020-02-24 16:15:58 +01:00
committed by GitHub

View File

@@ -4,7 +4,7 @@ class Test {
{ {
String latlonCoords = args[1]; String latlonCoords = args[1];
Runtime rt = Runtime.getRuntime(); Runtime rt = Runtime.getRuntime();
Process exec = rt.exec("cmd.exe /C latlon2utm.exe -" + latlonCoords); Process exec = rt.exec("cmd.exe /C latlon2utm.exe " + latlonCoords);
} }
// GOOD: use an array of arguments instead of executing a string // GOOD: use an array of arguments instead of executing a string