Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2010 18:22:56 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r202709 - head/usr.sbin/burncd
Message-ID:  <201001201822.o0KIMufx080684@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Wed Jan 20 18:22:56 2010
New Revision: 202709
URL: http://svn.freebsd.org/changeset/base/202709

Log:
  Give the right value when complaining it being wrong.
  
  Reported by:	danfe
  MFC after:	3 days

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

Modified: head/usr.sbin/burncd/burncd.c
==============================================================================
--- head/usr.sbin/burncd/burncd.c	Wed Jan 20 16:56:20 2010	(r202708)
+++ head/usr.sbin/burncd/burncd.c	Wed Jan 20 18:22:56 2010	(r202709)
@@ -151,7 +151,7 @@ main(int argc, char **argv)
 	else
 		speed = atoi(env_speed) * 177;
 	if (speed <= 0)
-		errx(EX_USAGE, "Invalid speed: %s", optarg);
+		errx(EX_USAGE, "Invalid speed: %s", env_speed);
 
 	if (argc == 0)
 		usage();



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