svn commit: r270518 - head/usr.sbin/wlandebug

Hiren Panchasara hiren at FreeBSD.org
Mon Aug 25 05:52:06 UTC 2014


Author: hiren
Date: Mon Aug 25 05:52:05 2014
New Revision: 270518
URL: http://svnweb.freebsd.org/changeset/base/270518

Log:
  Fix a typo to catch correct condition.

Modified:
  head/usr.sbin/wlandebug/wlandebug.c

Modified: head/usr.sbin/wlandebug/wlandebug.c
==============================================================================
--- head/usr.sbin/wlandebug/wlandebug.c	Mon Aug 25 05:26:48 2014	(r270517)
+++ head/usr.sbin/wlandebug/wlandebug.c	Mon Aug 25 05:52:05 2014	(r270518)
@@ -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");


More information about the svn-src-head mailing list