From: Felix Domke Date: Thu, 2 Apr 2009 12:57:37 +0000 (+0200) Subject: skip path prefix from .pyc compilation X-Git-Tag: 2.6.0~346 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/95ba1e09f217126be9e77dc29ba551700900c721 skip path prefix from .pyc compilation --- diff --git a/main/bsod.cpp b/main/bsod.cpp index 583107d7..b32b915f 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 */ + int path_prefix = lines.find("/image/", start); + if (path_prefix != std::string::npos && ((path_prefix + 6) < end)) + start = path_prefix + 6; + if (end == std::string::npos) break; if (end - start >= (256 - strlen(INFOFILE)))