From 80783a92f68bcd9d27c92bd9dddc42f4e4485bd9 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 28 Apr 2009 12:41:10 +0200 Subject: bsod.cpp: skip path prefix up to /usr --- main/bsod.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main') diff --git a/main/bsod.cpp b/main/bsod.cpp index 017f910f..aeb31c47 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; -- cgit v1.2.3