diff --git a/libr/core/cmd_anal.c b/libr/core/cmd_anal.c index 3e49c04c06..068efbaa48 100644 --- a/libr/core/cmd_anal.c +++ b/libr/core/cmd_anal.c @@ -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); diff --git a/libr/core/graph.c b/libr/core/graph.c index f346d6b870..57f23b084a 100644 --- a/libr/core/graph.c +++ b/libr/core/graph.c @@ -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