mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
MF22: Finish fixing 'looping' bug.
This commit is contained in:
parent
ff6ba95a46
commit
8ff8eb13f7
1 changed files with 1 additions and 5 deletions
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id: readcis.c,v 1.12 1998/03/20 04:49:19 hosokawa Exp $";
|
||||
"$Id: readcis.c,v 1.6.2.5 1998/04/20 05:41:30 nate Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <err.h>
|
||||
|
|
@ -173,16 +173,12 @@ cis_info(struct cis *cp, unsigned char *p, int len)
|
|||
*cp->manuf = *cp->vers = *cp->add_info1 = *cp->add_info2 = '\0';
|
||||
cp->maj_v = *p++;
|
||||
cp->min_v = *p++;
|
||||
if (*p == 0xff) return;
|
||||
strncpy(cp->manuf, p, CIS_MAXSTR - 1);
|
||||
while (*p++);
|
||||
if (*p == 0xff) return;
|
||||
strncpy(cp->vers, p, CIS_MAXSTR - 1);
|
||||
while (*p++);
|
||||
if (*p == 0xff) return;
|
||||
strncpy(cp->add_info1, p, CIS_MAXSTR - 1);
|
||||
while (*p++);
|
||||
if (*p == 0xff) return;
|
||||
strncpy(cp->add_info2, p, CIS_MAXSTR - 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue