diff options
author | imp <imp@FreeBSD.org> | 2003-03-14 21:11:01 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-03-14 21:11:01 +0000 |
commit | e4f4ea4bee37ad8c0751bfe26dd8bb90c5163d21 (patch) | |
tree | e369284278f466737691c7578c966120aad4b20b /usr.sbin | |
parent | 64afb9f4caa5b57572c3893eab16381b6866c3fa (diff) | |
download | FreeBSD-src-e4f4ea4bee37ad8c0751bfe26dd8bb90c5163d21.zip FreeBSD-src-e4f4ea4bee37ad8c0751bfe26dd8bb90c5163d21.tar.gz |
manufacturer id is typically 4 bytes
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pccard/pccardd/readcis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pccard/pccardd/readcis.c b/usr.sbin/pccard/pccardd/readcis.c index b5e9096..73b72ef 100644 --- a/usr.sbin/pccard/pccardd/readcis.c +++ b/usr.sbin/pccard/pccardd/readcis.c @@ -246,7 +246,7 @@ cis_info(struct cis *cp, unsigned char *p, int len) static void cis_manuf_id(struct cis *cp, unsigned char *p, int len) { - if (len > 4) { + if (len >= 4) { cp->manufacturer = tpl16(p); cp->product = tpl16(p+2); if (len == 5) |