bsod.cpp: fix compiler warning
[enigma2.git] / main / bsod.cpp
index 583107d78f1312b1b5682ea963ffc607386df641..017f910f59a7e391b93f19d24976a1bfe12ac6f0 100644 (file)
@@ -92,6 +92,11 @@ void bsodFatal(const char *component)
                        if (end == std::string::npos)
                                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;
+
                        if (end == std::string::npos)
                                break;
                        if (end - start >= (256 - strlen(INFOFILE)))