diff --git a/librz/core/cmd/cmd_print.c b/librz/core/cmd/cmd_print.c index d2aa7d13ccf..1ec363a54d2 100644 --- a/librz/core/cmd/cmd_print.c +++ b/librz/core/cmd/cmd_print.c @@ -7032,7 +7032,7 @@ RZ_IPI RzCmdStatus rz_cmd_print_raw_handler(RzCore *core, int argc, const char * } RZ_IPI RzCmdStatus rz_cmd_print_raw_colors_handler(RzCore *core, int argc, const char **argv) { - int len = argc > 1 ? rz_num_math(core->num, argv[1]) : strlen((const char *)core->block); + int len = argc > 1 ? rz_num_math(core->num, argv[1]) : core->blocksize; if (len < 0) { return RZ_CMD_STATUS_ERROR; }