From owner-cvs-all Tue Dec 7 11:24: 8 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2D8A715412; Tue, 7 Dec 1999 11:23:57 -0800 (PST) (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA82679; Tue, 7 Dec 1999 11:23:57 -0800 (PST) (envelope-from imp@FreeBSD.org) Message-Id: <199912071923.LAA82679@freefall.freebsd.org> From: Warner Losh Date: Tue, 7 Dec 1999 11:23:56 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/pccard/pccardd readcis.c readcis.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk imp 1999/12/07 11:23:56 PST Modified files: usr.sbin/pccard/pccardd readcis.c readcis.h Log: Bump CIS_MAXSTR from 30 to 254. pccard appears to define the entire section we take them from to be up to 255 bytes long, so that's the max size for the string. They can't all be this big, but I don't have a better number and better to be a little long than a little short. Also only consume len characters of the cis buffer so we don't run off the end into the next buffer and get garbage. This second patch shouldn't impact anything, but I'll hold off back porting this to -stable until I get more reports on the stability before/after this fix. Revision Changes Path 1.16 +17 -4 src/usr.sbin/pccard/pccardd/readcis.c 1.11 +2 -2 src/usr.sbin/pccard/pccardd/readcis.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message