diff options
Diffstat (limited to 'usr.sbin/wlandebug/wlandebug.c')
-rw-r--r-- | usr.sbin/wlandebug/wlandebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/wlandebug/wlandebug.c b/usr.sbin/wlandebug/wlandebug.c index f0e325c52479..9bec123b5f63 100644 --- a/usr.sbin/wlandebug/wlandebug.c +++ b/usr.sbin/wlandebug/wlandebug.c @@ -177,7 +177,7 @@ main(int argc, char *argv[]) setoid(oid, sizeof(oid), NULL); argc -= 1, argv += 1; } else if (strcmp(argv[1], "-i") == 0) { - if (argc < 2) + if (argc <= 2) errx(1, "missing interface name for -i option"); if (strncmp(argv[2], "wlan", 4) != 0) errx(1, "expecting a wlan interface name"); |