svn commit: r202859 - stable/8/usr.sbin/burncd

Xin LI delphij at FreeBSD.org
Sat Jan 23 00:52:33 UTC 2010


Author: delphij
Date: Sat Jan 23 00:52:32 2010
New Revision: 202859
URL: http://svn.freebsd.org/changeset/base/202859

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

Modified:
  stable/8/usr.sbin/burncd/burncd.c
Directory Properties:
  stable/8/usr.sbin/burncd/   (props changed)

Modified: stable/8/usr.sbin/burncd/burncd.c
==============================================================================
--- stable/8/usr.sbin/burncd/burncd.c	Sat Jan 23 00:49:50 2010	(r202858)
+++ stable/8/usr.sbin/burncd/burncd.c	Sat Jan 23 00:52:32 2010	(r202859)
@@ -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();


More information about the svn-src-all mailing list