X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=main%2Fbsod.cpp;h=aeb31c4744028eff478b9741fe9ceb71532b6a26;hp=017f910f59a7e391b93f19d24976a1bfe12ac6f0;hb=875b117b3aeca1af73942d4eeb691496f6c884f9;hpb=3e45b153a93894c4c382d3ba5ded974c738e9589 diff --git a/main/bsod.cpp b/main/bsod.cpp index 017f910..aeb31c4 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;