aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorZach Riggle <zachriggle@users.noreply.github.com>2017-06-27 09:55:11 -0500
committerDmitry Vyukov <dvyukov@google.com>2017-06-27 16:55:11 +0200
commitc30c1ddc7b524649160f34ea6b0cf73c9840a51e (patch)
treeb34aac71d22f576ec73c89979d317989e6f51ac0 /tools
parent581058c20f5d942eaa2e7f145214539e88b0f884 (diff)
Fix incorrect argument in syz-tty (#260)
Diffstat (limited to 'tools')
-rw-r--r--tools/syz-tty/syz-tty.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-tty/syz-tty.go b/tools/syz-tty/syz-tty.go
index a03e7ee39..8d51dd8ef 100644
--- a/tools/syz-tty/syz-tty.go
+++ b/tools/syz-tty/syz-tty.go
@@ -19,7 +19,7 @@ func main() {
fmt.Fprintf(os.Stderr, "usage: %v /dev/ttyUSBx\n", os.Args[0])
os.Exit(1)
}
- con, err := vmimpl.OpenConsole(os.Args[0])
+ con, err := vmimpl.OpenConsole(os.Args[1])
if err != nil {
fmt.Fprintf(os.Stderr, "failed to open console: %v\n", err)
os.Exit(1)