From: Jay Freeman (saurik) <saurik@saurik.com> Date: Sun, 3 Jan 2016 02:06:45 +0000 (-0800) Subject: Support linkers that allow relative library paths. X-Git-Tag: v0.9.590~91 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/fcb1dfec3ae3ca84efc03c8258724028d2b14492 Support linkers that allow relative library paths. --- diff --git a/Execute.cpp b/Execute.cpp index a7a68ac..fc19fba 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -2067,7 +2067,8 @@ const char *CYPoolLibraryPath(CYPool &pool) { char *lib(pool.strdup(addr.dli_fname)); char *slash(strrchr(lib, '/')); - _assert(slash != NULL); + if (slash == NULL) + return "."; *slash = '\0'; slash = strrchr(lib, '/');