Date: Tue, 21 Dec 1999 20:31:15 +0900 From: tetsuya@secom-sis.co.jp To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/15604: Typo in lpd.c Message-ID: <99Dec21.202407jst.27780@spiral.secom-sis.co.jp>
next in thread | raw e-mail | index | archive | help
>Number: 15604 >Category: bin >Synopsis: Typo in lpd.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 21 03:40:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Tetsuya Furukawa >Release: FreeBSD 3.4-RELEASE i386 >Organization: None >Environment: None. >Description: It's a long-life bug since the initial revision. It doesn't seem to have any ill effect in the current source code. >How-To-Repeat: None. >Fix: --- usr.sbin/lpr/lpd/lpd.c.orig Mon Aug 30 00:43:22 1999 +++ usr.sbin/lpr/lpd/lpd.c Tue Dec 21 19:58:07 1999 @@ -590,7 +590,7 @@ inet_ntoa(f->sin_addr)); (void) strncpy(fromb, hp->h_name, sizeof(fromb) - 1); - from[sizeof(fromb) - 1] = '\0'; + fromb[sizeof(fromb) - 1] = '\0'; from = fromb; /* Check for spoof, ala rlogind */ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99Dec21.202407jst.27780>