From owner-freebsd-bugs Mon Dec 23 3:10: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8309337B401 for ; Mon, 23 Dec 2002 03:10:06 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4056043EDE for ; Mon, 23 Dec 2002 03:10:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBNBA5NS077345 for ; Mon, 23 Dec 2002 03:10:05 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBNBA52d077344; Mon, 23 Dec 2002 03:10:05 -0800 (PST) Date: Mon, 23 Dec 2002 03:10:05 -0800 (PST) Message-Id: <200212231110.gBNBA52d077344@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Maxim Konovalov Subject: Re: bin/46489: error parsing usbd.conf by usbd Reply-To: Maxim Konovalov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/46489; it has been noted by GNATS. From: Maxim Konovalov To: "Vladimir B.Grebenschikov" Cc: bug-followup@freebsd.org Subject: Re: bin/46489: error parsing usbd.conf by usbd Date: Mon, 23 Dec 2002 14:03:00 +0300 (MSK) Please try a patch below. Index: usbd.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/usbd/usbd.c,v retrieving revision 1.24 diff -u -r1.24 usbd.c --- usbd.c 22 Apr 2002 13:44:47 -0000 1.24 +++ usbd.c 23 Dec 2002 10:58:04 -0000 @@ -448,7 +448,7 @@ } /* skip initial spaces */ - while (*line != '\0' && isspace(*line)) { + while (len > 0 && isspace(*line)) { line++; len--; } %%% -- Maxim Konovalov, MAcomnet, Internet Dept., system engineer phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message