From owner-freebsd-bugs Tue Dec 21 3:40: 4 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D20111540D for ; Tue, 21 Dec 1999 03:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA43819; Tue, 21 Dec 1999 03:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from secom-sis.co.jp (spiral.secom-sis.co.jp [202.218.246.72]) by hub.freebsd.org (Postfix) with ESMTP id 1A5F3152B0 for ; Tue, 21 Dec 1999 03:31:22 -0800 (PST) (envelope-from tetsuya@secom-sis.co.jp) Received: by spiral.secom-sis.co.jp id <27780>; Tue, 21 Dec 1999 20:24:07 +0900 Message-Id: <99Dec21.202407jst.27780@spiral.secom-sis.co.jp> Date: Tue, 21 Dec 1999 20:31:15 +0900 From: tetsuya@secom-sis.co.jp Reply-To: tetsuya@secom-sis.co.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/15604: Typo in lpd.c Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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