core/cmd_anal: fix base64 body for 'agn' command

This commit is contained in:
Riccardo Schirone 2015-07-24 13:48:19 +02:00
parent 181fe9ffdc
commit 67735a34ed
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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