Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 2014 05:52:05 +0000 (UTC)
From:      Hiren Panchasara <hiren@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270518 - head/usr.sbin/wlandebug
Message-ID:  <201408250552.s7P5q5rJ079550@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408250552.s7P5q5rJ079550>