From e4f4ea4bee37ad8c0751bfe26dd8bb90c5163d21 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 14 Mar 2003 21:11:01 +0000 Subject: manufacturer id is typically 4 bytes --- usr.sbin/pccard/pccardd/readcis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/pccard') 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) -- cgit v1.1