diff --git a/libr/bin/p/bin_wasm.c b/libr/bin/p/bin_wasm.c index 42aee8ea68..b9b41e5fe3 100644 --- a/libr/bin/p/bin_wasm.c +++ b/libr/bin/p/bin_wasm.c @@ -133,9 +133,7 @@ static RList *symbols(RBinFile *bf) { if (!(ptr = R_NEW0 (RBinSymbol))) { goto bad_alloc; } - char tmp[R_BIN_SIZEOF_STRINGS]; - snprintf (tmp, R_BIN_SIZEOF_STRINGS, "imp.%s.%s", imp->module_str, imp->field_str); - ptr->name = strdup(tmp); + ptr->name = r_str_newf ("imp.%s.%s", imp->module_str, imp->field_str); ptr->forwarder = r_str_const ("NONE"); ptr->bind = r_str_const ("NONE"); switch (imp->kind) { diff --git a/libr/debug/snap.c b/libr/debug/snap.c index 4fb54cbfe8..2dcd072666 100644 --- a/libr/debug/snap.c +++ b/libr/debug/snap.c @@ -25,7 +25,6 @@ R_API void r_debug_snap_free(void *p) { R_API int r_debug_snap_delete(RDebug *dbg, int idx) { ut32 count = 0; RListIter *iter; - RDebugSnap *snap; if (idx == -1) { r_list_free (dbg->snaps); dbg->snaps = r_list_newf (r_debug_snap_free);