diff --git a/libr/core/bin.c b/libr/core/bin.c index f6576d92d8..d1b22f2e5b 100644 --- a/libr/core/bin.c +++ b/libr/core/bin.c @@ -818,7 +818,7 @@ static int bin_imports(RCore *r, int mode, int va, const char *name) { r_cons_printf (" classname=%s", import->classname); } r_cons_printf (" name=%s", import->name); - if (import->classname[0]) { + if (import->descriptor[0]) { r_cons_printf (" descriptor=%s", import->descriptor); } r_cons_printf ("\n"); diff --git a/libr/core/core.c b/libr/core/core.c index b7f55d053a..aa546b2b60 100644 --- a/libr/core/core.c +++ b/libr/core/core.c @@ -842,7 +842,7 @@ R_API char *r_core_anal_hasrefs(RCore *core, ut64 value) { r_strbuf_appendf (s, " (%s%s%s)", c, buf, cend); break; case 2: - r = r_utf8_encode_str ((const RRune *)widebuf, buf, + r = r_utf8_encode_str ((const RRune *)buf, widebuf, sizeof(widebuf) - 1); if (r == -1) { eprintf ("Something was wrong %s-%d\n",