Skip to content

Commit 707f75f

Browse files
author
Joshua Hale
committed
doc: remove - from command arguments
1 parent b30c9bc commit 707f75f

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)