mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-25 14:19:51 +00:00
Fix two covertities
This commit is contained in:
parent
7f6659722e
commit
92611cb9dc
@ -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");
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user