mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-06 13:29:46 +00:00
Do not change function name to fcn.<addr> if it starts with "fcn." in af+
This commit is contained in:
parent
c3d64d60d4
commit
34b3fb5ed7
@ -671,7 +671,7 @@ R_API int r_anal_fcn_add(RAnal *a, ut64 addr, ut64 size, const char *name, int t
|
||||
fcn->addr = addr;
|
||||
fcn->size = size;
|
||||
free (fcn->name);
|
||||
if (!name || !strncmp (name, "fcn.", 4)) {
|
||||
if (!name) {
|
||||
fcn->name = r_str_newf ("fcn.%08"PFMT64x, fcn->addr);
|
||||
} else {
|
||||
fcn->name = strdup (name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user