Debugger: Fix data copy issue.
- B_PRIx8 unfortunately doesn't necessarily strictly stay within the bounds of an 8-bit hex constant, so force the size passed to snprintf to make it that way.
This commit is contained in:
parent
59cef1fa18
commit
153c6c4a40
@ -802,7 +802,8 @@ MemoryView::_GetSelectedText(BString& text)
|
||||
|
||||
char buffer[32];
|
||||
for (int32 i = 0; i < count; i++) {
|
||||
_GetNextHexBlock(buffer, sizeof(buffer), data);
|
||||
_GetNextHexBlock(buffer, std::min(_GetHexDigitsPerBlock() + 1,
|
||||
(int32)32), data);
|
||||
data += blockSize;
|
||||
text << buffer;
|
||||
if (i < count - 1)
|
||||
|
Loading…
Reference in New Issue
Block a user