mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
Bug 1164090 - Check for Windows path separator in BHR file name; r=snorp
This commit is contained in:
1 parent
e554d92bc2
commit
d226e2c08b
1 file changed
+5
@@ -611,6 +611,11 @@ ThreadStackHelper::AppendJSEntry(const volatile StackEntry* aEntry,
|
||||
// Only keep the file base name for paths outside the above formats.
|
||||
basename = strrchr(filename, '/');
|
||||
basename = basename ? basename + 1 : filename;
|
||||
// Look for Windows path separator as well.
|
||||
filename = strrchr(basename, '\\');
|
||||
if (filename) {
|
||||
basename = filename + 1;
|
||||
}
|
||||
}
|
||||
|
||||
size_t len = PR_snprintf(buffer, sizeof(buffer), "%s:%u", basename, lineno);
|
||||
|
||||
Reference in new issue
Block a user