mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 21:29:49 +00:00
Fix #20540 - pc should use an unsigned char buffer ##print
This commit is contained in:
parent
a4335e773f
commit
6fc575dbb3
@ -122,7 +122,7 @@ R_API void r_print_code(RPrint *p, ut64 addr, const ut8 *buf, int len, char lang
|
||||
int col = 0;
|
||||
const int max_cols = 60;
|
||||
|
||||
p->cb_printf ("const char cstr[%d] = \"", len);
|
||||
p->cb_printf ("const unsigned char cstr[%d] = \"", len);
|
||||
for (i = 0; !r_print_is_interrupted () && i < len; i++) {
|
||||
if (col == 0 || col > max_cols) {
|
||||
p->cb_printf ("\"\\\n \"");
|
||||
|
@ -3,7 +3,7 @@ FILE=README.md
|
||||
CMDS=pcc
|
||||
|
||||
EXPECT=<<EOF
|
||||
const char cstr[256] = ""\
|
||||
const unsigned char cstr[256] = ""\
|
||||
"Radare2 Regression Test Suite\n=============================\n\n"\
|
||||
"A set of regression tests for Radare2 (http://radare.org).\n\nO"\
|
||||
"riginally based on work by and now in collaboration with panc"\
|
||||
|
Loading…
Reference in New Issue
Block a user