DBG: truncate labels in LabelGet
This commit is contained in:
parent
33403df92b
commit
9c3e5ec5ff
|
@ -83,11 +83,11 @@ bool LabelGet(duint Address, char* Text)
|
|||
if(found == tempLabels.end())
|
||||
return false;
|
||||
if(Text)
|
||||
strcpy_s(Text, MAX_LABEL_SIZE, found->second.c_str());
|
||||
strncpy_s(Text, MAX_LABEL_SIZE, found->second.c_str(), _TRUNCATE);
|
||||
return true;
|
||||
}
|
||||
if(Text)
|
||||
strcpy_s(Text, MAX_LABEL_SIZE, label.text.c_str());
|
||||
strncpy_s(Text, MAX_LABEL_SIZE, label.text.c_str(), _TRUNCATE);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue