From owner-freebsd-bugs Mon Apr 2 19:10:12 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 69EA037B726 for ; Mon, 2 Apr 2001 19:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f332A2G61759; Mon, 2 Apr 2001 19:10:02 -0700 (PDT) (envelope-from gnats) Date: Mon, 2 Apr 2001 19:10:02 -0700 (PDT) Message-Id: <200104030210.f332A2G61759@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Dima Dorfman Subject: Re: misc/26306: misspelling in burncd application Reply-To: Dima Dorfman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/26306; it has been noted by GNATS. From: Dima Dorfman To: otterr@telocity.com Cc: freebsd-gnats-submit@FreeBSD.org, sos@freebsd.org Subject: Re: misc/26306: misspelling in burncd application Date: Mon, 02 Apr 2001 19:04:25 -0700 [ 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; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message