X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/101e31a8ac8bc5dd6712f244356826dc082dc73d..d94506110fbfebcd3f49546c2403b5448589362a:/main/bsod.cpp 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)))