teletext.cpp: invert have_pts
[enigma2.git] / main / bsod.cpp
index 017f910f59a7e391b93f19d24976a1bfe12ac6f0..aeb31c4744028eff478b9741fe9ceb71532b6a26 100644 (file)
@@ -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;