1
0
Fork 0

DBG: remove limitation of placing "&" in labels

This commit is contained in:
Duncan Ogilvie 2018-01-30 20:54:45 +01:00
parent e9c984fee7
commit 1fa1c3d705
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ static std::unordered_map<duint, std::string> tempLabels;
bool LabelSet(duint Address, const char* Text, bool Manual, bool Temp)
{
// Make sure the string is supplied, within bounds, and not a special delimiter
if(!Text || Text[0] == '\1' || strlen(Text) >= MAX_LABEL_SIZE - 1 || strstr(Text, "&"))
if(!Text || Text[0] == '\1' || strlen(Text) >= MAX_LABEL_SIZE - 1)
return false;
// Delete the label if no text was supplied
if(Text[0] == '\0')