Fix incorrect argument in syz-tty (#260)

This commit is contained in:
Zach Riggle 2017-06-27 09:55:11 -05:00 committed by Dmitry Vyukov
parent 581058c20f
commit c30c1ddc7b

View File

@ -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)