Fix #20540 - pc should use an unsigned char buffer ##print

This commit is contained in:
adwait1-g 2022-08-09 10:16:48 +05:30 committed by pancake
parent a4335e773f
commit 6fc575dbb3
2 changed files with 2 additions and 2 deletions

View File

@ -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 \"");

View File

@ -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"\