From 95ba1e09f217126be9e77dc29ba551700900c721 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 2 Apr 2009 14:57:37 +0200 Subject: [PATCH 1/1] skip path prefix from .pyc compilation --- main/bsod.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/bsod.cpp b/main/bsod.cpp index 583107d7..b32b915f 100644 --- 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); + /* 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))) -- 2.30.2