Bug 26306

Summary: misspelling in burncd application
Product: Base System Reporter: otterr <otterr>
Component: miscAssignee: Søren Schmidt <sos>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description otterr 2001-04-03 02:30:01 UTC
When using burncd to erase a CD-RW, it echoes "eraseing CD, please wait..".

Fix: 

"eraseing" should be corrected to reflect the proper spelling: "erasing". (No offense to the Danes. The app makes up for it!)
How-To-Repeat: prompt> burncd -f <device> erase
Comment 1 dima 2001-04-03 03:04:25 UTC
[ cc'd to sos, the burncd author ]

otterr@telocity.com writes:
> 
> >Number:         26306
> >Category:       misc
> >Synopsis:       misspelling in burncd application
>
> >Description:
> When using burncd to erase a CD-RW, it echoes "eraseing CD, please wait..". 
>
> >Fix:
> "eraseing" should be corrected to reflect the proper spelling: "erasing". (No
>  offense to the Danes. The app makes up for it!)

Actually, it isn't a spelling error on the author's part per se.  The
way it's written in the code, it's very easy to overlook this mistake
(esp. for a non-native English speaker).  Just thought I'd point that
out.

Attached is a patch.  It compiles, but other than that I've not tested
it (I don't have a burner).

					Dima Dorfman
					dima@unixfreak.org

Index: burncd.c
===================================================================
RCS file: /st/src/FreeBSD/src/usr.sbin/burncd/burncd.c,v
retrieving revision 1.12
diff -u -r1.12 burncd.c
--- burncd.c	2001/01/10 19:28:37	1.12
+++ burncd.c	2001/04/03 02:01:45
@@ -141,13 +141,17 @@
 		}
 		if (!strcmp(argv[arg], "erase") || !strcmp(argv[arg], "blank")){
 		    	int error, blank, percent;
-			if (!quiet)
-				fprintf(stderr, "%sing CD, please wait..\r",
-					argv[arg]);
-			if (!strcmp(argv[arg], "erase"))
+			char *act_ing;
+			if (!strcmp(argv[arg], "erase")) {
 				blank = CDR_B_ALL;
-			else
+				act_ing = "erasing";
+			} else {
 				blank = CDR_B_MIN;
+				act_ing = "blanking";
+			}
+			if (!quiet)
+				fprintf(stderr, "%s CD, please wait..\r",
+					act_ing);
 
 			if (ioctl(fd, CDRIOCBLANK, &blank) < 0)
         			err(EX_IOERR, "ioctl(CDRIOCBLANK)");
@@ -156,9 +160,9 @@
 				error = ioctl(fd, CDRIOCGETPROGRESS, &percent);
 				if (percent > 0 && !quiet)
 					fprintf(stderr, 
-						"%sing CD - %d %% done"
+						"%s CD - %d %% done"
 						"     \r",
-						argv[arg], percent);
+						act_ing, percent);
 				if (error || percent == 100)
 					break;
 			}
Comment 2 dd freebsd_committer freebsd_triage 2001-04-29 04:17:47 UTC
Responsible Changed
From-To: freebsd-bugs->sos

Over to maintainer (sos, this one has a patch).
Comment 3 Søren Schmidt freebsd_committer freebsd_triage 2001-05-30 09:07:27 UTC
State Changed
From-To: open->closed

Point taken :) fix a bit differently in -current.