X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/bbfcb7ea1f040d030277e2b6f2efa9ea0967bf2b..ca3361067f6e74db5765978bb6f41eaefc5f2c7e:/main/bsod.cpp?ds=sidebyside diff --git a/main/bsod.cpp b/main/bsod.cpp index 583107d7..aeb31c47 100644 --- a/main/bsod.cpp +++ b/main/bsod.cpp @@ -92,6 +92,11 @@ void bsodFatal(const char *component) if (end == std::string::npos) break; end = lines.rfind("/", end); + /* skip a potential prefix to the path */ + unsigned int path_prefix = lines.find("/usr/", start); + if (path_prefix != std::string::npos && path_prefix < end) + start = path_prefix; + if (end == std::string::npos) break; if (end - start >= (256 - strlen(INFOFILE)))