mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
Merge pull request #853 from joshhale/tweak-cwe-078-example
doc: remove - from command arguments
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user