mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-04 12:36:30 +00:00
Fix #5371 - format string in blocksize error
This commit is contained in:
parent
887f5bfa8c
commit
e829c007fd
@ -2020,16 +2020,18 @@ static int cmd_print(void *data, const char *input) {
|
||||
}// else l = 0;
|
||||
} else l = len;
|
||||
|
||||
if (len > core->blocksize)
|
||||
if (len > core->blocksize) {
|
||||
len = core->blocksize;
|
||||
}
|
||||
|
||||
if (input[0] != 'd' && input[0] != 'm' && input[0]!='a' && input[0] != 'f') {
|
||||
n = core->blocksize_max;
|
||||
i = (int)n;
|
||||
if (i != n) i = 0;
|
||||
if (i && l > i) {
|
||||
eprintf ("This block size is too big (%d<%d). Did you mean 'p%c @ %s' instead?\n",
|
||||
i, l, *input, input+2);
|
||||
eprintf ("This block size is too big (0x%"PFMT64x
|
||||
" < 0x%x). Did you mean 'p%c @ %s' instead?\n",
|
||||
n, l, *input, input+2);
|
||||
goto beach;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user