diff options
| author | Nate Williams <nate@FreeBSD.org> | 1998-04-20 05:42:26 +0000 |
|---|---|---|
| committer | Nate Williams <nate@FreeBSD.org> | 1998-04-20 05:42:26 +0000 |
| commit | 8ff8eb13f7a8d174304863a2d8ddef599e94294b (patch) | |
| tree | 9d277dd316c5098a38a14326faf7d7f27b70e494 /usr.sbin/pccard | |
| parent | ff6ba95a4690dc4bb38d8684e833749bd5044c46 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/pccard')
| -rw-r--r-- | usr.sbin/pccard/pccardd/readcis.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/pccard/pccardd/readcis.c b/usr.sbin/pccard/pccardd/readcis.c index cef5337bc402..5b9dbb5d39f7 100644 --- a/usr.sbin/pccard/pccardd/readcis.c +++ b/usr.sbin/pccard/pccardd/readcis.c @@ -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); } |
