mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-19 05:38:43 +00:00
Fix off-by-one in p=
This commit is contained in:
parent
288763f69a
commit
182db54e57
@ -1059,7 +1059,7 @@ R_API void r_print_fill(RPrint *p, const ut8 *arr, int size, ut64 addr, int step
|
||||
}
|
||||
p->cb_printf ("%02x %04x |", i, arr[i]);
|
||||
if (show_colors) {
|
||||
int idx = (int)(arr[i] * 6 / 255);
|
||||
int idx = (int)(arr[i] * 5 / 255);
|
||||
const char *k = firebow[idx];
|
||||
p->cb_printf ("%s", k);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user