--- lspci.c +++ lspci.c @@ -1437,7 +1437,7 @@ break; id = header & 0xffff; printf("\tCapabilities: [%03x] ", where); - if (been_there[where++]) + if (been_there[where]++) { printf("\n"); break;