git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
36adf5c
)
skip path prefix from .pyc compilation
author
Felix Domke
<tmbinc@elitedvb.net>
Thu, 2 Apr 2009 12:57:37 +0000
(14:57 +0200)
committer
Felix Domke
<tmbinc@elitedvb.net>
Thu, 2 Apr 2009 12:57:37 +0000
(14:57 +0200)
main/bsod.cpp
patch
|
blob
|
history
diff --git
a/main/bsod.cpp
b/main/bsod.cpp
index 583107d78f1312b1b5682ea963ffc607386df641..b32b915f1d1ace7605b6e8832cd8261d7132c230 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 */
+ 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)))
if (end == std::string::npos)
break;
if (end - start >= (256 - strlen(INFOFILE)))