git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dvbtime.h/cpp: add possibility to build a 16bit hash with event start time and month day
[enigma2.git]
/
main
/
bsod.cpp
diff --git
a/main/bsod.cpp
b/main/bsod.cpp
index 583107d78f1312b1b5682ea963ffc607386df641..aeb31c4744028eff478b9741fe9ceb71532b6a26 100644
(file)
--- 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);
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)))
if (end == std::string::npos)
break;
if (end - start >= (256 - strlen(INFOFILE)))