mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 00:38:55 +00:00
update pds changes
This commit is contained in:
parent
f88eb2408a
commit
f17814d9d8
@ -1535,6 +1535,12 @@ static void disasm_strings(RCore *core, const char *input, RAnalFunction *fcn) {
|
|||||||
str = strstr (line, "fcn.");
|
str = strstr (line, "fcn.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (str) {
|
||||||
|
char *qoe = strstr (str, ";");
|
||||||
|
if (qoe) {
|
||||||
|
str = r_str_ndup (str, qoe - str);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (str) {
|
if (str) {
|
||||||
string2 = strdup (str);
|
string2 = strdup (str);
|
||||||
linecolor = MYPAL(call);
|
linecolor = MYPAL(call);
|
||||||
|
@ -788,7 +788,9 @@ R_API const char *r_str_get2(const char *str) {
|
|||||||
|
|
||||||
R_API char *r_str_ndup(const char *ptr, int len) {
|
R_API char *r_str_ndup(const char *ptr, int len) {
|
||||||
char *out = malloc (len+1);
|
char *out = malloc (len+1);
|
||||||
if (!out) return NULL;
|
if (!out) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
strncpy (out, ptr, len);
|
strncpy (out, ptr, len);
|
||||||
out[len] = 0;
|
out[len] = 0;
|
||||||
return out;
|
return out;
|
||||||
|
Loading…
Reference in New Issue
Block a user