diff --git a/src/lsbom.cpp b/src/lsbom.cpp index 22d51e7..94fbb90 100644 --- a/src/lsbom.cpp +++ b/src/lsbom.cpp @@ -268,7 +268,7 @@ int main(int argc, char *argv[]) { DEBUG(2, "BOMVar 0x" << hex << ntohl(var->index) << ' ' << name << ':'); - if (strstr(name.c_str(),"Paths") == 0) { + if (name.rfind("Paths", 0) == 0) { BOMPaths *paths = (BOMPaths *)lookup(tree->child); typedef map filenames_t;