Skip to content

Commit 67b3279

Browse files
authored
Merge pull request github#853 from joshhale/tweak-cwe-078-example
doc: remove - from command arguments
2 parents 317356e + 707f75f commit 67b3279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/Security/CWE/CWE-078/ExecUnescaped.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public static void main(String[] args) {
44
{
55
String latlonCoords = args[1];
66
Runtime rt = Runtime.getRuntime();
7-
Process exec = rt.exec("cmd.exe /C latlon2utm.exe -" + latlonCoords);
7+
Process exec = rt.exec("cmd.exe /C latlon2utm.exe " + latlonCoords);
88
}
99

1010
// GOOD: use an array of arguments instead of executing a string

0 commit comments

Comments
 (0)