Skip to content

Commit

Permalink
Trim space in wa+ output
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Dec 12, 2024
1 parent 19ec4de commit 637eba1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libr/core/cmd_write.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2169,7 +2169,8 @@ static int cmd_wa(void *data, const char *input) {
cmd_write_fail (core);
} else {
if (r_config_get_b (core->config, "scr.prompt")) { // maybe check interactive?
R_LOG_INFO ("Written %d byte(s) (%s) = wx %s @ 0x%08"PFMT64x, acode->len, input + 1, hex, core->offset);
const char *arg = r_str_trim_head_ro (input + 1);
R_LOG_INFO ("Written %d byte(s) (%s) = wx %s @ 0x%08"PFMT64x, acode->len, arg, hex, core->offset);
}
WSEEK (core, acode->len);
}
Expand Down

0 comments on commit 637eba1

Please sign in to comment.