From c024a9bd686be26381d47de56c34d8a157f9dd59 Mon Sep 17 00:00:00 2001 From: Claudio Luck Date: Sat, 26 Oct 2024 15:38:31 +0200 Subject: [PATCH] Fix #21 and #33 --- src/lsbom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;