Skip to content

Commit

Permalink
use rz_str_get for info cpu & features
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed Dec 29, 2024
1 parent 5552b78 commit 1c9dfcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librz/core/cbin.c
Original file line number Diff line number Diff line change
Expand Up @@ -5271,8 +5271,8 @@ static void print_arch(RzBin *bin, RzCmdStateOutput *state, struct arch_ctx *ctx
pj_kn(state->d.pj, "offset", ctx->offset);
pj_kn(state->d.pj, "size", ctx->size);
if (info) {
pj_ks(state->d.pj, "cpu", info->cpu);
pj_ks(state->d.pj, "features", info->features);
pj_ks(state->d.pj, "cpu", rz_str_get(info->cpu));
pj_ks(state->d.pj, "features", rz_str_get(info->features));
}
if (ctx->machine) {
pj_ks(state->d.pj, "machine", ctx->machine);
Expand Down

0 comments on commit 1c9dfcd

Please sign in to comment.