From: Martin Mares Date: Mon, 8 Jun 1998 07:51:45 +0000 (+0000) Subject: Fixed bug in parsing of ":x" type filters. X-Git-Tag: v3.0.0~331 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=71e8f0ae8bbb1bd1d0a13f4a9e5414c07cb439a7;p=pciutils.git Fixed bug in parsing of ":x" type filters. --- diff --git a/filter.c b/filter.c index db4ce13..e557cdd 100644 --- a/filter.c +++ b/filter.c @@ -1,5 +1,5 @@ /* - * $Id: filter.c,v 1.1 1998/03/31 21:02:14 mj Exp $ + * $Id: filter.c,v 1.2 1998/06/08 07:51:45 mj Exp $ * * Linux PCI Utilities -- Device Filtering * @@ -11,7 +11,6 @@ #include #include #include -#include #include "pciutils.h" @@ -48,7 +47,7 @@ filter_parse_slot(struct pci_filter *f, char *str) *dot++ = 0; if (mid[0] && strcmp(mid, "*")) { - long int x = strtol(str, &e, 16); + long int x = strtol(mid, &e, 16); if ((e && *e) || (x < 0 || x >= 0x1f)) return "Invalid slot number"; f->slot = x;