X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffilter.c;h=573fb28103637f65d98411c9602bcb1899816471;hb=c4cf2d1c17594d333ccd819212756e3afb8b9924;hp=ab1476f4038c811225eb41a91695f678b35173e4;hpb=558f736b28677cd0409c4e442e48d26d4ec5d1fd;p=pciutils.git diff --git a/lib/filter.c b/lib/filter.c index ab1476f..573fb28 100644 --- a/lib/filter.c +++ b/lib/filter.c @@ -45,7 +45,7 @@ pci_filter_parse_slot_v33(struct pci_filter *f, char *str) if (str[0] && strcmp(str, "*")) { long int x = strtol(str, &e, 16); - if ((e && *e) || (x < 0 || x > 0xffff)) + if ((e && *e) || (x < 0 || x > 0x7fffffff)) return "Invalid domain number"; f->domain = x; }