mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-22 10:43:35 +00:00
[Breakpad] Fix hex formatting for MinidumpCrashpadInfo::Print()
The hex formatting in MinidumpCrashpadInfo::Print() was missing the leading 0, so byte values < 128 were not possible to decode. Change-Id: Ib355bcdaf86e91d644045df645fb4fa75332aa4b Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4571100 Reviewed-by: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
parent
02fe1eef8e
commit
18aa6faf2e
1 changed files with 1 additions and 1 deletions
|
@ -5503,7 +5503,7 @@ void MinidumpCrashpadInfo::Print() {
|
||||||
// Value represents something else.
|
// Value represents something else.
|
||||||
char buffer[3];
|
char buffer[3];
|
||||||
for (const uint8_t& v : annot.value) {
|
for (const uint8_t& v : annot.value) {
|
||||||
snprintf(buffer, sizeof(buffer), "%X", v);
|
snprintf(buffer, sizeof(buffer), "%02X", v);
|
||||||
str_value.append(buffer);
|
str_value.append(buffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue