From 71e8f0ae8bbb1bd1d0a13f4a9e5414c07cb439a7 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 8 Jun 1998 07:51:45 +0000 Subject: [PATCH] Fixed bug in parsing of ":x" type filters. --- filter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.2