From 8eb915a0193832794728748d7eb1c666c49eae08 Mon Sep 17 00:00:00 2001 From: Marianne Gagnon Date: Sun, 31 May 2015 16:10:49 -0400 Subject: [PATCH] Apply patch by ryandesign , fixes #9 --- src/DylibBundler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DylibBundler.cpp b/src/DylibBundler.cpp index 0fef302..1702a4f 100644 --- a/src/DylibBundler.cpp +++ b/src/DylibBundler.cpp @@ -94,7 +94,7 @@ void collectDependencies(std::string filename) if( lines[n].find(".framework") != std::string::npos ) continue; //Ignore frameworks, we can not handle them addDependency( // trim useless info, keep only library name - lines[n].substr(1, lines[n].find(" (") ) + lines[n].substr(1, lines[n]rfind(" (") - 1) ); } } @@ -120,7 +120,7 @@ void collectSubDependencies() if( lines[n].find(".framework") != std::string::npos ) continue; //Ignore frameworks, we can not handle them addDependency( // trim useless info, keep only library name - lines[n].substr(1, lines[n].find(" (") ) + lines[n].substr(1, lines[n]rfind(" (") - 1) ); }//next }//next