mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 1164090 - Check for Windows path separator in BHR file name; r=snorp
This commit is contained in:
parent
dc596951dd
commit
bb5a648426
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user