X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/95ba1e09f217126be9e77dc29ba551700900c721..ca3361067f6e74db5765978bb6f41eaefc5f2c7e:/main/bsod.cpp diff --git a/main/bsod.cpp b/main/bsod.cpp index b32b915f..aeb31c47 100644 --- a/main/bsod.cpp +++ b/main/bsod.cpp @@ -93,9 +93,9 @@ void bsodFatal(const char *component) break; end = lines.rfind("/", end); /* skip a potential prefix to the path */ - int path_prefix = lines.find("/image/", start); - if (path_prefix != std::string::npos && ((path_prefix + 6) < end)) - start = path_prefix + 6; + 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;