1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Version 1.16 was a bad change, so revert it.

This commit is contained in:
Warner Losh 1999-12-08 18:12:02 +00:00
parent 6e59a2562a
commit 17c770d7e5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54325

View File

@ -170,29 +170,16 @@ freecis(struct cis *cp)
static void
cis_info(struct cis *cp, unsigned char *p, int len)
{
unsigned char *end = p + len;
*cp->manuf = *cp->vers = *cp->add_info1 = *cp->add_info2 = '\0';
cp->maj_v = *p++;
cp->min_v = *p++;
if (p >= end)
return;
strncpy(cp->manuf, p, CIS_MAXSTR - 1);
cp->manuf[CIS_MAXSTR - 1] = '\0';
p += strlen(p);
if (p >= end)
return;
while (*p++);
strncpy(cp->vers, p, CIS_MAXSTR - 1);
cp->vers[CIS_MAXSTR - 1] = '\0';
p += strlen(p);
if (p >= end)
return;
while (*p++);
strncpy(cp->add_info1, p, CIS_MAXSTR - 1);
cp->add_info1[CIS_MAXSTR - 1] = '\0';
p += strlen(p);
if (p >= end)
return;
while (*p++);
strncpy(cp->add_info2, p, CIS_MAXSTR - 1);
cp->add_info2[CIS_MAXSTR - 1] = '\0';
}
/*