diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-04-28 12:41:10 +0200 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-04-28 12:41:10 +0200 |
| commit | 80783a92f68bcd9d27c92bd9dddc42f4e4485bd9 (patch) | |
| tree | 08a51cd3408b5f14aec5f7fd57cc30fc64af294d /main/bsod.cpp | |
| parent | 56c42c8c5727a3484f6f0869c46d314d850a7f48 (diff) | |
| download | enigma2-80783a92f68bcd9d27c92bd9dddc42f4e4485bd9.tar.gz enigma2-80783a92f68bcd9d27c92bd9dddc42f4e4485bd9.zip | |
bsod.cpp: skip path prefix up to /usr
Diffstat (limited to 'main/bsod.cpp')
| -rw-r--r-- | main/bsod.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/bsod.cpp b/main/bsod.cpp index 017f910f..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 */ - unsigned 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; |
