diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-04-02 14:57:37 +0200 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-04-02 14:57:37 +0200 |
| commit | 95ba1e09f217126be9e77dc29ba551700900c721 (patch) | |
| tree | baa8f00cb1a7c7ea6df0765665db9a8a67df0471 /main/bsod.cpp | |
| parent | 36adf5ca9728a2edc5b1e19bf98e95006a68bcc0 (diff) | |
| download | enigma2-95ba1e09f217126be9e77dc29ba551700900c721.tar.gz enigma2-95ba1e09f217126be9e77dc29ba551700900c721.zip | |
skip path prefix from .pyc compilation
Diffstat (limited to 'main/bsod.cpp')
| -rw-r--r-- | main/bsod.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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))) |
