Fix two covertities

This commit is contained in:
jvoisin 2015-10-09 13:26:25 +02:00
parent 7f6659722e
commit 92611cb9dc
2 changed files with 2 additions and 2 deletions

View File

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

View File

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