update pds changes

This commit is contained in:
Álvaro Felipe Melchor 2016-09-24 00:30:13 +02:00
parent f88eb2408a
commit f17814d9d8
2 changed files with 9 additions and 1 deletions

View File

@ -1535,6 +1535,12 @@ static void disasm_strings(RCore *core, const char *input, RAnalFunction *fcn) {
str = strstr (line, "fcn.");
}
}
if (str) {
char *qoe = strstr (str, ";");
if (qoe) {
str = r_str_ndup (str, qoe - str);
}
}
if (str) {
string2 = strdup (str);
linecolor = MYPAL(call);

View File

@ -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) {
char *out = malloc (len+1);
if (!out) return NULL;
if (!out) {
return NULL;
}
strncpy (out, ptr, len);
out[len] = 0;
return out;