From e092b3a14ea0dfa317502655403baab7976c03ce Mon Sep 17 00:00:00 2001 From: wargio Date: Sun, 7 Jan 2024 20:44:25 +0800 Subject: [PATCH] Fix `prc` command. --- librz/core/cmd/cmd_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }