mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 16:18:33 +00:00
core/cmd_anal: fix base64 body for 'agn' command
This commit is contained in:
parent
181fe9ffdc
commit
67735a34ed
@ -2339,10 +2339,11 @@ static void cmd_anal_graph(RCore *core, const char *input) {
|
||||
|
||||
body = args[1];
|
||||
if (strncmp (body, "base64:", B_LEN) == 0) {
|
||||
body = r_str_replace (body, "\\n", "", R_TRUE);
|
||||
newbody = (char *)r_base64_decode_dyn (body + B_LEN, 0);
|
||||
body = newbody;
|
||||
|
||||
}
|
||||
body = r_str_concat (body, "\n");
|
||||
r_agraph_add_node (core->graph, args[0], body);
|
||||
r_str_argv_free (args);
|
||||
free (newbody);
|
||||
|
@ -16,7 +16,7 @@ static int color_disasm = 0;
|
||||
#define HORIZONTAL_NODE_SPACING 12
|
||||
#define VERTICAL_NODE_SPACING 4
|
||||
#define MIN_NODE_WIDTH 18
|
||||
#define MIN_NODE_HEIGTH BORDER_HEIGHT + 1
|
||||
#define MIN_NODE_HEIGTH BORDER_HEIGHT
|
||||
#define INIT_HISTORY_CAPACITY 16
|
||||
#define TITLE_LEN 128
|
||||
#define DEFAULT_SPEED 1
|
||||
|
Loading…
Reference in New Issue
Block a user