diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pciconf/pciconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c index c67931422db4..a6ac3154655c 100644 --- a/usr.sbin/pciconf/pciconf.c +++ b/usr.sbin/pciconf/pciconf.c @@ -501,7 +501,7 @@ getsel(const char *str) i = 0; do { selarr[i++] = strtoul(ep, &ep, 10); - } while (*ep == ':' && *++ep != '\0' && i < 4); + } while ((*ep == ':' || *ep == '.') && *++ep != '\0' && i < 4); if (i > 2) sel.pc_func = selarr[--i]; |