1
0
Fork 0

Merge pull request #2571 from torusrxxx/patch000000b8

Hopefully fix #2570
This commit is contained in:
Duncan Ogilvie 2021-01-14 13:04:31 +01:00 committed by GitHub
commit 1cf9e5d167
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -103,14 +103,6 @@ bool stackcommentget(duint addr, STACK_COMMENT* comment)
return true;
}
//string
char string[MAX_STRING_SIZE] = "";
if(DbgGetStringAt(data, string))
{
strncpy_s(comment->comment, string, _TRUNCATE);
return true;
}
//label
char label[MAX_LABEL_SIZE] = "";
BRIDGE_ADDRINFO addrinfo;
@ -134,6 +126,14 @@ bool stackcommentget(duint addr, STACK_COMMENT* comment)
return true;
}
//string
char string[MAX_STRING_SIZE] = "";
if(DbgGetStringAt(data, string))
{
strncpy_s(comment->comment, string, _TRUNCATE);
return true;
}
return false;
}